public class DefaultCriteria<T extends Criteria<T>,O extends Options> extends Object implements Criteria<T>, Expandable
| Modifier and Type | Field and Description |
|---|---|
protected List<Criterion> |
criterionEntries |
protected int |
currentOrderIndex |
protected Integer |
limit |
protected Integer |
offset |
protected O |
options |
protected List<Order> |
orderEntries |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultCriteria(O options) |
| Modifier and Type | Method and Description |
|---|---|
T |
add(Criterion criterion) |
T |
add(Order order) |
T |
and(Criterion criterion) |
T |
ascending() |
T |
descending() |
List<Criterion> |
getCriterionEntries() |
List<Expansion> |
getExpansions() |
Integer |
getLimit() |
Integer |
getOffset() |
protected O |
getOptions() |
List<Order> |
getOrderEntries() |
boolean |
isEmpty() |
T |
limitTo(int limit) |
T |
offsetBy(int offset) |
T |
orderBy(Property property) |
String |
toString() |
protected Integer limit
protected Integer offset
protected int currentOrderIndex
protected DefaultCriteria(O options)
public List<Expansion> getExpansions()
getExpansions in interface Expandablepublic T descending()
descending in interface Criteria<T extends Criteria<T>>protected O getOptions()
public T limitTo(int limit)
public Integer getLimit()
public T offsetBy(int offset)
public Integer getOffset()
Copyright © 2012–2014. All rights reserved.