public class QueryOrder extends Object
| Constructor and Description |
|---|
QueryOrder() |
QueryOrder(String... strings)
Create a QueryOrder instance from an array of property names to order on,
prefixed with '-' to sort descending.
|
| Modifier and Type | Method and Description |
|---|---|
QueryOrder |
addSort(String... strings)
Add sort order(s) to this QueryOrder instance.
|
boolean |
isSorted()
Returns true if this QueryOrder contains sort criteria.
|
void |
iterate(OrderCallback callback) |
public QueryOrder()
public QueryOrder(String... strings)
strings - property name(s) to sort on (prefixed with '-' to sort descending).public QueryOrder addSort(String... strings)
strings - property names to sort on (prefixed with '-' to sort descending).public boolean isSorted()
public void iterate(OrderCallback callback)
Copyright © 2013. All Rights Reserved.