org.objectweb.medor.query.rdb.lib

Class BasicRdbExpField

Implemented Interfaces:
Cloneable, Field, NullStatus, QueryTreeField, RdbExpField, RdbField

public class BasicRdbExpField
extends BasicRdbField
implements RdbExpField

Author:
Sebastien Chassande-Barrioz

Field Summary

Fields inherited from class org.objectweb.medor.query.rdb.lib.BasicRdbField

col, 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

BasicRdbExpField()
BasicRdbExpField(String name, PType type, String col, QualifiedTable table, QueryLeaf ql)

Method Summary

Object
clone(Object clone, Map obj2clone)
QualifiedTable
getTable()
Returns the associated QualifiedTable.
void
setQueryLeaf(QueryLeaf ql)
Sets the QueryLeaf to which the RdbExpField is associated
void
setTable(QualifiedTable t)
Associates the RdbExpField with the QualifiedTable.

Methods inherited from class org.objectweb.medor.query.rdb.lib.BasicRdbField

clone, getColumnName, getQueryTree

Methods inherited from class org.objectweb.medor.lib.BasicField

clone, getName, getNullStatus, getType, toString

Constructor Details

BasicRdbExpField

public BasicRdbExpField()


BasicRdbExpField

public BasicRdbExpField(String name,
                        PType type,
                        String col,
                        QualifiedTable table,
                        QueryLeaf ql)

Method Details

clone

public Object clone(Object clone,
                    Map obj2clone)
            throws CloneNotSupportedException
Overrides:
clone in interface BasicRdbField


getTable

public QualifiedTable getTable()
Returns the associated QualifiedTable.
Specified by:
getTable in interface RdbExpField

Returns:
the associated QualifiedTable in the underlying SQL query.


setQueryLeaf

public void setQueryLeaf(QueryLeaf ql)
Sets the QueryLeaf to which the RdbExpField is associated
Specified by:
setQueryLeaf in interface RdbExpField

Parameters:
ql - is the QueryLeaf to which the RdbExpField is associated


setTable

public void setTable(QualifiedTable t)
Associates the RdbExpField with the QualifiedTable.
Specified by:
setTable in interface RdbExpField

Parameters:
t - is the associated QualifiedTable in the underlying SQL query.