|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.medor.lib.BasicTupleStructure | +--org.objectweb.medor.query.lib.BasicQueryTree | +--org.objectweb.medor.query.rdb.lib.BasicRdbStringQueryLeaf
This class represents a QueryLeaf that maps onto a relational database store.
Field Summary |
Fields inherited from class org.objectweb.medor.query.lib.BasicQueryTree |
distinct, indexes, name, orderfields |
Fields inherited from class org.objectweb.medor.lib.BasicTupleStructure |
fields, name2field |
Constructor Summary | |
BasicRdbStringQueryLeaf(DataStore ds,
java.lang.String request,
java.lang.String nodeName)
Constructs a BasicRdbStringQueryLeaf from an SQL string. |
Method Summary | |
RdbField |
addRdbField(java.lang.String name,
PType type,
java.lang.String colName)
Adds a Field to the RdbExpQueryLeaf |
DataStore |
getDataStore()
|
boolean |
getDistinct()
Tests whether the results should be distinct or not. |
java.lang.String |
getName()
It returns the name of the query tree. |
java.lang.String |
getSqlRequest(ParameterOperand[] pos)
Returns the associated SQL query. |
TupleStructure |
getTupleStructure()
Returns the TupleStructure associated to the QueryTree. |
void |
setDistinct(boolean d)
Indicates whether evaluating the QueryTree should return unique results (duplicate elimination) or not. |
Methods inherited from class org.objectweb.medor.query.lib.BasicQueryTree |
clone, getOrderBy, setOrderBy |
Methods inherited from class org.objectweb.medor.lib.BasicTupleStructure |
contains, contains, getField, getField, getFieldRank, getFields, getSize |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.medor.query.api.QueryTree |
getOrderBy, setOrderBy |
Methods inherited from interface org.objectweb.medor.api.TupleStructure |
contains, contains, getField, getField, getFieldRank, getFields, getSize |
Methods inherited from interface org.objectweb.medor.api.Cloneable |
clone |
Constructor Detail |
public BasicRdbStringQueryLeaf(DataStore ds, java.lang.String request, java.lang.String nodeName)
Method Detail |
public RdbField addRdbField(java.lang.String name, PType type, java.lang.String colName)
RdbStringQueryLeaf
addRdbField
in interface RdbStringQueryLeaf
name
- is the name of the Field to be added.type
- is the PTyme of the Field to be added.colName
- is the name of the column in the associated
QualifiedTable.
public java.lang.String getSqlRequest(ParameterOperand[] pos)
RdbQueryLeaf
getSqlRequest
in interface RdbQueryLeaf
public java.lang.String getName()
QueryTree
getName
in interface QueryTree
getName
in class BasicQueryTree
public boolean getDistinct()
QueryTree
getDistinct
in interface QueryTree
getDistinct
in class BasicQueryTree
public void setDistinct(boolean d)
QueryTree
The default should be that duplicates are not eliminated (distinct is false).
setDistinct
in interface QueryTree
setDistinct
in class BasicQueryTree
d
- is true if duplicates should be eliminated, false
otherwise.public DataStore getDataStore()
getDataStore
in interface QueryLeaf
public TupleStructure getTupleStructure()
QueryTree
getTupleStructure
in interface QueryTree
getTupleStructure
in class BasicQueryTree
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |