org.objectweb.medor.query.lib
Class MedorTCQueryLeaf
- Cloneable, Cloneable, QueryLeaf, QueryTree, TCQueryLeaf, TupleStructure
public class MedorTCQueryLeaf
A TupleCollection is one of the DataStore that is queryable by Medor.
This
class reprensents a QueryLeaf wich take its data from a Medor
TupleCollection.
filter
protected Expression filter
nodeName
protected String nodeName
MedorTCQueryLeaf
public MedorTCQueryLeaf()
clone
public Object clone(Object clone,
Map obj2clone)
throws CloneNotSupportedException
- clone in interface BasicTupleStructure
getDistinct
public boolean getDistinct()
Tests whether the results should be distinct or not.
- getDistinct in interface QueryTree
- true if there results should be distinct, false otherwise.
getName
public String getName()
It returns the name of the query tree.
- getName in interface QueryTree
getOrderBy
public OrderField[] getOrderBy()
Returns the array of OrderFields indicating how the result should be
ordered.
- getOrderBy in interface QueryTree
- the array of OrderFields.
getTupleStructure
public TupleStructure getTupleStructure()
Returns the TupleStructure associated to the QueryTree.
Note that the Fields cannot be added by manipulating the TupleStructure,
but by using either constructors in the case of a QueryLeaf, or by
using the addXXXFields methods in the case of QueryNodes.
- getTupleStructure in interface QueryTree
setDistinct
public void setDistinct(boolean d)
throws MedorException
Indicates whether evaluating the QueryTree should return unique results
(duplicate elimination) or not.
The default should be that duplicates are not eliminated (distinct
is false).
- setDistinct in interface QueryTree
MedorException
- if the distinct operation is not supported.
setOrderBy
public void setOrderBy(OrderField[] orderfields)
throws MedorException
Sets the OrderBy array of OrderFields.
This array indicates the fields by which the results should be
ordered.
Like for filters assigned to QueryNodes, the Fields used for ordering
must belong to children of the current QueryTree.
A noticeable exception is the case of RdbExpQueryLeaves, where
ordering fields are fields of the QueryLeaf itself.
- setOrderBy in interface QueryTree
MedorException
- if ordering is not supported.