public class QueryParams
extends java.lang.Object
Constructor and Description |
---|
QueryParams()
Create a new instance of
QueryParams initialized with default values. |
Modifier and Type | Method and Description |
---|---|
QueryParams |
addArg(java.lang.String argument)
Add an argument to the list of arguments
|
QueryParams |
addArgs(java.util.List<java.lang.String> argument)
Add multiple arguments to the list of arguments
|
QueryParams |
addOrdering(java.lang.String fieldName,
Ordering order)
Add a criterion to the List of ordering criteria
|
java.lang.String[] |
getArgs() |
long |
getLimit() |
java.lang.String[] |
getOrderingAsEncodedArray() |
QueryParams |
setLimit(long limit)
Set the maximum number of rows to be returned by the query
|
public QueryParams()
QueryParams
initialized with default values.public QueryParams addArg(java.lang.String argument)
argument
- argument to be addedQueryParams
public QueryParams addArgs(java.util.List<java.lang.String> argument)
argument
- arguments to be addedQueryParams
public QueryParams addOrdering(java.lang.String fieldName, Ordering order)
fieldName
- The field to be ordered onorder
- Ordering
specifying the sort order to be applied to the field specified in fieldName
QueryParams
public QueryParams setLimit(long limit)
limit
- maximum number of rows to be returned by the queryQueryParams
public long getLimit()
public java.lang.String[] getOrderingAsEncodedArray()
public java.lang.String[] getArgs()
Please send bug reports and comments to Caplin support