|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
boolean |
getDistinct()
Tests whether the results should be distinct or not. |
java.lang.String |
getName()
It returns the name of the query tree. |
OrderField[] |
getOrderBy()
Returns the array of OrderFields indicating how the result should be ordered. |
TupleStructure |
getTupleStructure()
Returns the TupleStructure associated to the QueryTree. |
void |
setDistinct(boolean distinct)
Indicates whether evaluating the QueryTree should return unique results (duplicate elimination) or not. |
void |
setOrderBy(OrderField[] orders)
Sets the OrderBy array of OrderFields. |
Methods inherited from interface org.objectweb.medor.query.api.AnnotationsHolder |
getAnnotations |
Method Detail |
public TupleStructure getTupleStructure()
public java.lang.String getName()
public boolean getDistinct()
public void setDistinct(boolean distinct) throws MedorException
The default should be that duplicates are not eliminated (distinct is false).
distinct
- is true if duplicates should be eliminated, false
otherwise.
MedorException
- if the distinct operation is not supported.public void setOrderBy(OrderField[] orders) throws MedorException
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.
orders
- the array of OrderFields indicating the ordering in which
the result should be returned.
MedorException
- if ordering is not supported.public OrderField[] getOrderBy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |