Q
- Concrete QueryBuilderpublic interface QueryBuilder<Q extends QueryBuilder<Q>> extends QueryFilter.QueryFilterSupport<Q>, QuerySort.QuerySortSupport<Q>, DataTarget.DataTargetSupport<Q>, QueryAggregation.QueryAggregationSupport<Q>, ExpressionResolver.ExpressionResolverBuilder<Q>
Query
, managing query DataTarget
and query clauses such as QueryFilter
and QuerySort
and handling ExpressionResolver
s registration.Query
Modifier and Type | Method and Description |
---|---|
Q |
distinct()
Configure the query to return distinct query projection result values.
|
QueryConfiguration |
getQueryConfiguration()
Get the current
QueryConfiguration . |
Q |
limit(int limit)
Limit the fetched result set
|
Q |
offset(int offset)
Starts the query results at a particular zero-based offset.
|
<T> Q |
parameter(ConfigProperty<T> property,
T value)
Add a parameter to query using a
ConfigProperty and ConfigProperty.getKey() as parameter name. |
Q |
parameter(String name,
Object value)
Add a generic parameter to query
|
Q |
restrict(int limit,
int offset)
Convenience method to set
limit(int) and offset(int) of query results both in one call |
filter, filter, filter
sort, sort, sort
target, target
aggregate, aggregate, aggregate
withExpressionResolver
QueryConfiguration getQueryConfiguration()
QueryConfiguration
.QueryConfiguration
Q limit(int limit)
limit
- Results limit. Must be > 0. A value <= 0 indicates no limit.Q offset(int offset)
offset
- Results offset 0-based index. Must be >= 0.Q restrict(int limit, int offset)
limit(int)
and offset(int)
of query results both in one calllimit
- limit Results limit. Must be > 0. A value <= 0 indicates no limit.offset
- offset Results offset 0-based index. Must be >= 0.Q parameter(String name, Object value)
name
- Parameter namevalue
- Parameter value<T> Q parameter(ConfigProperty<T> property, T value)
ConfigProperty
and ConfigProperty.getKey()
as parameter name.T
- Config property typeproperty
- The configuration property (not null)value
- Parameter valueQ distinct()
Copyright © 2019 The Holon Platform. All rights reserved.