public class QueryOptions extends Object
When making a DomainObjectApi.find(QueryOptions) request, use
QueryOptions to specify:
For examples, see HTTP Flow Find
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BATCH_SIZE |
static int |
DEFAULT_LIMIT_SIZE |
protected String |
filter |
protected Integer |
limit |
static int |
NO_LIMIT |
protected Integer |
skip |
protected Map<String,SortType> |
sorts |
| Constructor and Description |
|---|
QueryOptions() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
QueryOptions |
filter(String filterStr)
For defining the parameters of the search
|
int |
hashCode() |
QueryOptions |
limit(int ct)
To limit the number of results returned
|
QueryOptions |
skip(int ct)
The number of records from the beginning which we shall skip
|
QueryOptions |
sort(String sort,
SortType sortType)
The order in which to sort the results
|
Map<String,String> |
toMap() |
public static final int DEFAULT_BATCH_SIZE
public static final int DEFAULT_LIMIT_SIZE
public static final int NO_LIMIT
protected Integer skip
protected Integer limit
protected String filter
public QueryOptions sort(String sort, SortType sortType)
sort - - a field to sort bysortType - - order of the sortpublic QueryOptions skip(int ct)
ct - - number of records to skippublic QueryOptions limit(int ct)
ct - - the number of results returned (default 20)public QueryOptions filter(String filterStr)
filterStr - - flowthings filter languageCopyright © 2016. All rights reserved.