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

java.lang.Object
  extended byorg.objectweb.medor.lib.BasicField
      extended byorg.objectweb.medor.query.rdb.lib.BasicRdbField
All Implemented Interfaces:
Cloneable, java.lang.Cloneable, Field, QueryTreeField, RdbField
Direct Known Subclasses:
BasicRdbExpField, BasicRdbFieldOperand

public class BasicRdbField
extends BasicField
implements RdbField

Author:
Sebastien Chassande-Barrioz

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

Constructor Detail

BasicRdbField

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

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