public final class OrderCriteria extends Object implements OrderCriterion
| Constructor and Description |
|---|
OrderCriteria()
Creates an empty group of order criteria.
|
OrderCriteria(OrderCriterion[] criteria)
Groups the given order criteria.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public OrderCriteria()
public OrderCriteria(OrderCriterion[] criteria)
criteria - The criteria to be grouped.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)Copyright © 2016 Eclipse Stardust. All Rights Reserved.