Class QuerySpec
java.lang.Object
com.flowingcode.backendcore.model.QuerySpec
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstraint(Constraint constraint) voidvoidaddOrder(String property, QuerySpec.Order order) Return the position of the first result to retrieve.Return the maximum number of results to retrieve.voidsetFirstResult(Integer firstResult) Set the position of the first result to retrieve.voidsetMaxResult(Integer maxResult) Set the maximum number of results to retrieve.toString()
-
Constructor Details
-
QuerySpec
public QuerySpec()
-
-
Method Details
-
addOrder
-
addOrder
-
addConstraint
-
toString
-
getFirstResult
Return the position of the first result to retrieve.- Returns:
- the position of the first result to retrieve (numbered from 0) or null.
-
getMaxResult
Return the maximum number of results to retrieve.- Returns:
- the maximum number of results to retrieve, or null.
-
setFirstResult
Set the position of the first result to retrieve.- Parameters:
startPosition- position of the first result, numbered from 0 (may be null)- Throws:
IllegalArgumentException- if the argument is negative
-
setMaxResult
Set the maximum number of results to retrieve.- Parameters:
maxResult- maximum number of results to retrieve (may be null)- Throws:
IllegalArgumentException- if the argument is negative
-