|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.stardust.engine.api.query.OrderCriteria
public final class OrderCriteria
A group of order criteria. Can be used to preconfigure specific order criteria for later reuse.
| Constructor Summary | |
|---|---|
OrderCriteria()
Creates an empty group of order criteria. |
|
OrderCriteria(OrderCriterion[] criteria)
Groups the given order criteria. |
|
| Method Summary | |
|---|---|
Object |
accept(OrderEvaluationVisitor visitor,
Object context)
Visitor dispatch callback used for evaluating order criteria. |
OrderCriteria |
and(FilterableAttribute attribute)
Orders by ascending values of the given attribute. |
OrderCriteria |
and(FilterableAttribute attribute,
boolean ascending)
Orders by either ascending or descending values of the given attribute. |
OrderCriteria |
and(OrderCriterion criterion)
Adds another order criterion to the list of grouped criteria. |
List |
getCriteria()
Gets the list of order criteria grouped by the callee. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrderCriteria()
public OrderCriteria(OrderCriterion[] criteria)
criteria - The criteria to be grouped.| Method Detail |
|---|
public List getCriteria()
public Object accept(OrderEvaluationVisitor visitor,
Object context)
OrderCriterionreturn visitor.visit(this, context), thus calling the appropriately
overloaded visitation method.
accept in interface OrderCriterionvisitor - The visitor performing the evaluation.context - Information used by the visitor during the visitation process.
public OrderCriteria and(OrderCriterion criterion)
criterion - The criterion to be added.and(FilterableAttribute),
and(FilterableAttribute, boolean)public final OrderCriteria and(FilterableAttribute attribute)
attribute - The attribute to order by.
and(FilterableAttribute, boolean),
and(OrderCriterion)
public final OrderCriteria and(FilterableAttribute attribute,
boolean ascending)
attribute - The attribute to order by.ascending - Flag indicating if ordering should be performed by either ascending
or descending attribute value.
and(FilterableAttribute),
and(OrderCriterion)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||