public class QueryParams extends Object
This class is used to hold all the information necessary for Persistor.onQuery(String, String, QueryParams)
to create and execute a query
Modifier and Type | Class and Description |
---|---|
static class |
QueryParams.Order
Enum representing the sort order to be applied to columns
|
Modifier and Type | Method and Description |
---|---|
String[] |
getArgs()
An array of arguments to be bound to the ? characters in the argument
query passed to Persistor.onQuery(String, String, QueryParams) |
long |
getLimit()
Returns the maximum number of rows that should be returned by a query.
|
com.caplin.transformer.persistence.Ordering[] |
getOrdering()
An array holding specific fields paired with a sort order represented as the enum
QueryParams.Order . |
String |
toString() |
public String[] getArgs()
An array of arguments to be bound to the ? characters in the argument query
passed to Persistor.onQuery(String, String, QueryParams)
public com.caplin.transformer.persistence.Ordering[] getOrdering()
An array holding specific fields paired with a sort order represented as the enum QueryParams.Order
. The arguments
in this array must be applied in priority order where index 0 represents the primary sort column
Ordering
array containing the arguments for the order by clause or null if none specifiedpublic long getLimit()
Returns the maximum number of rows that should be returned by a query. These rows will be the first n rows of the result without changing any order. 0
Please send bug reports and comments to Caplin support