T - the type of the selectionpublic interface SubQuery<T> extends QueryBuilder<SubQuery<T>>, QueryExpression<T>
QueryExpression.
This class implements QueryBuilder to build sub query using QueryFilters, QuerySorts and
providing ExpressionResolver registration support.
Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>, Expression.InvalidExpressionException| Modifier and Type | Method and Description |
|---|---|
static SubQuery<Integer> |
create(Datastore datastore)
Build a sub query with default
select 1 projection as selection. |
static <T> SubQuery<T> |
create(Datastore datastore,
Class<? extends T> selectionType)
Build a sub query with given selection type.
|
static <T> SubQuery<T> |
create(Datastore datastore,
QueryProjection<T> selection)
Build a sub query with given property as selection.
|
QueryFilter |
exists()
Build a EXISTS filter predicate using this sub query
|
QueryProjection<T> |
getSelection()
Gets the projection to use as the subquery result
|
QueryFilter |
notExists()
Build a NOT EXISTS filter predicate using this sub query
|
SubQuery<T> |
select(QueryProjection<T> projection)
Specify the projection to use as the subquery result.
|
getQueryConfiguration, limit, offset, parameter, restrictfiltersorttarget, targetaggregate, aggregate, aggregatewithExpressionResolvergetTypevalidateSubQuery<T> select(QueryProjection<T> projection)
projection - Projection (not null)QueryProjection<T> getSelection()
QueryFilter exists()
QueryFilter notExists()
static <T> SubQuery<T> create(Datastore datastore, Class<? extends T> selectionType)
T - Subquery selection typedatastore - Datastore (not null)selectionType - Sub query selection type (not null)static <T> SubQuery<T> create(Datastore datastore, QueryProjection<T> selection)
T - Subquery selection typedatastore - Datastore (not null)selection - Query selection (not null)Copyright © 2017 The Holon Platform. All rights reserved.