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