1 23 24 package org.objectweb.medor.query.rdb.lib; 25 26 import org.objectweb.jorm.type.api.PType; 27 import org.objectweb.medor.lib.BasicField; 28 import org.objectweb.medor.query.api.QueryLeaf; 29 import org.objectweb.medor.query.api.QueryTree; 30 import org.objectweb.medor.query.rdb.api.RdbField; 31 32 import java.util.Map ; 33 34 38 public class BasicRdbField extends BasicField implements RdbField { 39 40 protected String col = null; 41 protected QueryLeaf ql; 42 43 public BasicRdbField() { 44 } 45 46 public BasicRdbField(String name, 47 PType type, 48 String col, 49 QueryLeaf ql) { 50 super(name, type); 51 this.col = col; 52 this.ql = ql; 53 } 54 55 public Object clone(Object clone, 56 Map obj2clone) throws CloneNotSupportedException { 57 clone = super.clone(clone, obj2clone); 58 ((BasicRdbField) clone).col = col; 59 ((BasicRdbField) clone).ql = (QueryLeaf) getClone(ql, obj2clone); 60 return clone; 61 } 62 63 public String getColumnName() { 64 return col; 65 } 66 67 public QueryTree getQueryTree() { 68 return ql; 69 } 70 } 71 | Popular Tags |