org.objectweb.medor.query.rdb.lib
Class BasicRdbField
java.lang.Object
BasicCloneable
org.objectweb.medor.lib.BasicField
org.objectweb.medor.query.rdb.lib.BasicRdbField
- All Implemented Interfaces:
- Cloneable, java.lang.Cloneable, java.lang.Comparable, Field, NullStatus, QueryTreeField, RdbField
- Direct Known Subclasses:
- BasicRdbExpField, BasicRdbFieldOperand
- public class BasicRdbField
- extends BasicField
- implements RdbField
- Author:
- Sebastien Chassande-Barrioz
- See Also:
- Serialized Form
Fields inherited from interface org.objectweb.medor.api.Field |
PNAMENAME |
Method Summary |
java.lang.Object |
clone(java.lang.Object clone,
java.util.Map obj2clone)
|
java.lang.String |
getColumnName()
Returns the name of the column, either in the SQL ResultSet in the case
of RdbStringQueryLeaf, or the name of the column in the QualifiedTable
in the case of RdbExpQueryLeaf. |
QueryTree |
getQueryTree()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.objectweb.medor.api.Cloneable |
clone |
Methods inherited from interface java.lang.Comparable |
compareTo |
col
protected java.lang.String col
ql
protected QueryLeaf ql
BasicRdbField
public BasicRdbField()
BasicRdbField
public BasicRdbField(java.lang.String name,
PType type,
java.lang.String col,
QueryLeaf ql)
clone
public java.lang.Object clone(java.lang.Object clone,
java.util.Map obj2clone)
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class BasicField
- Throws:
java.lang.CloneNotSupportedException
getColumnName
public java.lang.String getColumnName()
- Description copied from interface:
RdbField
- Returns the name of the column, either in the SQL ResultSet in the case
of RdbStringQueryLeaf, or the name of the column in the QualifiedTable
in the case of RdbExpQueryLeaf. This name is not to be confused with the
name of the Field itself.
- Specified by:
getColumnName
in interface RdbField
- Returns:
- the name of the RdbField in the underlying resultset (in the case
of a RdbStringQueryLeaf) or QualifiedTable (in the case of
a RdbExpField in a RdbExpQueryLeaf).
getQueryTree
public QueryTree getQueryTree()
- Specified by:
getQueryTree
in interface QueryTreeField