public class Query extends Object
Defines a work object / definition query.
Modifier and Type | Class and Description |
---|---|
static class |
Query.Builder |
Modifier and Type | Method and Description |
---|---|
static Query.Builder |
builder()
Returns a new query builder.
|
static Query.Builder |
builder(Query template)
Returns a new query builder based on a template query.
|
static Query |
byPredicate(Predicate predicate)
Convenience method to create a
Query with the given predicate. |
Set<QueryHint> |
getHints()
The hints to apply when executing the query.
|
Integer |
getLimit()
The maximum number of results.
|
Integer |
getOffset()
The offset of the first result.
|
Predicate |
getPredicate()
The predicate to match.
|
List<Ordering> |
getSorting()
The order criteria to sort the results.
|
String |
toString() |
public Predicate getPredicate()
The predicate to match.
public Integer getOffset()
The offset of the first result.
public Integer getLimit()
The maximum number of results.
public List<Ordering> getSorting()
The order criteria to sort the results.
public Set<QueryHint> getHints()
The hints to apply when executing the query.
public static Query.Builder builder()
Returns a new query builder.
public static Query.Builder builder(Query template)
Returns a new query builder based on a template query.
template
- the template querypublic static Query byPredicate(Predicate predicate)
Convenience method to create a Query
with the given predicate.
To create a query with paging, sorting, etc., use the full API of the Query.Builder
.
predicate
- the predicate to matchCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.