Class QueryParams
java.lang.Object
com.caplin.transformer.persistence.QueryParams
This class is used to hold all the information necessary for Persistor.onQuery(String, String, QueryParams)
to create and execute a query
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enum representing the sort order to be applied to columns -
Method Summary
Modifier and TypeMethodDescriptionString[]
getArgs()
An array of arguments to be bound to the ? characters in the argumentquery
passed toPersistor.onQuery(String, String, QueryParams)
long
getLimit()
Returns the maximum number of rows that should be returned by a query.com.caplin.transformer.persistence.Ordering[]
An array holding specific fields paired with a sort order represented as the enumQueryParams.Order
.toString()
-
Method Details
-
getArgs
An array of arguments to be bound to the ? characters in the argument
query
passed toPersistor.onQuery(String, String, QueryParams)
- Returns:
- String array containing the arguments or null if none specified
-
getOrdering
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- Returns:
Ordering
array containing the arguments for the order by clause or null if none specified
-
getLimit
public 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
- Returns:
- maximum number of rows to be returned or 0 for all rows
-
toString
-