Q
- Concrete BeanQueryBuilderpublic interface BeanQueryBuilder<Q extends BeanQueryBuilder<Q>> extends QueryFilter.QueryFilterSupport<Q>, QuerySort.QuerySortSupport<Q>, QueryAggregation.QueryAggregationSupport<Q>, ExpressionResolver.ExpressionResolverBuilder<Q>
Modifier and Type | Method and Description |
---|---|
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
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 valueCopyright © 2019 The Holon Platform. All rights reserved.