org.objectweb.medor.query.rdb.lib
Class BasicRdbField

java.lang.Object
  extended byBasicCloneable
      extended byorg.objectweb.medor.lib.BasicField
          extended byorg.objectweb.medor.query.rdb.lib.BasicRdbField
All Implemented Interfaces:
java.lang.Cloneable, 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

Field Summary
protected  java.lang.String col
           
protected  QueryLeaf ql
           
 
Fields inherited from class org.objectweb.medor.lib.BasicField
logger, name, type, valueState
 
Fields inherited from interface org.objectweb.medor.api.Field
PNAMENAME
 
Fields inherited from interface org.objectweb.medor.api.NullStatus
NONULLS, NULLABLE, NULLABLEUNKNOWN
 
Constructor Summary
BasicRdbField()
           
BasicRdbField(java.lang.String name, PType type, java.lang.String col, QueryLeaf ql)
           
 
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 org.objectweb.medor.lib.BasicField
compareTo, getName, getNullStatus, getType, toString
 
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.Field
getName, getNullStatus, getType
 
Methods inherited from interface org.objectweb.medor.api.Cloneable
clone
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

col

protected java.lang.String col

ql

protected QueryLeaf ql
Constructor Detail

BasicRdbField

public BasicRdbField()

BasicRdbField

public BasicRdbField(java.lang.String name,
                     PType type,
                     java.lang.String col,
                     QueryLeaf ql)
Method Detail

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