public abstract static class BaseQuery.BaseQueryBuilder<Q extends BaseQuery,SELF extends BaseQuery.BaseQueryBuilder<Q,SELF>> extends Object
Modifier | Constructor and Description |
---|---|
protected |
BaseQueryBuilder()
Creates an empty builder instance.
|
protected |
BaseQueryBuilder(Q template)
Creates a builder instance initialized from the given query.
|
Modifier and Type | Method and Description |
---|---|
abstract Q |
build() |
protected BaseQuery.QueryData |
getQueryData()
Returns the actual query data.
|
protected abstract SELF |
getThis() |
SELF |
hints(QueryHint hint)
Sets a single query execution hint.
|
SELF |
hints(Set<QueryHint> hints)
Sets query execution hints.
|
SELF |
limit(Integer limit)
The maximum number of results to retrieve.
|
SELF |
offset(Integer offset)
The offset of the first result to retrieve.
|
SELF |
predicate(Predicate predicate)
The predicate to match.
|
SELF |
sorting(List<Ordering> sorting)
Sets order criteria to sort the results.
|
SELF |
sorting(Ordering sorting)
Sets a single order criterion to sort the results.
|
protected BaseQueryBuilder()
protected BaseQueryBuilder(Q template)
template
- the template queryprotected final BaseQuery.QueryData getQueryData()
public SELF predicate(Predicate predicate)
predicate
- the predicate to matchpublic SELF offset(Integer offset)
offset
- the first result to retrieve, index starts at 0public SELF limit(Integer limit)
limit
- the maximum number of results to retrievepublic SELF sorting(Ordering sorting)
sorting
- the order criterionpublic SELF sorting(List<Ordering> sorting)
sorting
- the order criteriapublic SELF hints(QueryHint hint)
hint
- the query execution hintpublic SELF hints(Set<QueryHint> hints)
hints
- the query execution hintsprotected abstract SELF getThis()
public abstract Q build()
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.