Subquery contract. Mostlty a set of delegation to its internal
QueryStructure.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final CommonAbstractCriteria | |
| private final QueryStructure | |
| private Expression |
| Access | Constructor and Description |
|---|---|
| public | CriteriaSubqueryImpl(CriteriaBuilderImpl criteriaBuilder, Class<T> javaType, CommonAbstractCriteria parent)
|
| Modifier and Type | Method and Description |
|---|---|
| public <Y> Root | correlate(Root<Y>
a root of the containing query source)Implements javax. |
| public <X, Y> Join | correlate(Join<X, Y>
join object of the containing query source)Implements javax. |
| public <X, Y> CollectionJoin | correlate(CollectionJoin<X, Y>
join object of the containing query source)Implements javax. |
| public <X, Y> SetJoin | correlate(SetJoin<X, Y>
join object of the containing query source)Implements javax. |
| public <X, Y> ListJoin | correlate(ListJoin<X, Y>
join object of the containing query source)Implements javax. |
| public <X, K, V> MapJoin | correlate(MapJoin<X, K, V>
join object of the containing query source)Implements javax. |
| public Subquery | distinct(boolean
boolean value specifying whether duplicate
results must be eliminated from the subquery result or
whether they must be retained applyDistinction)Implements javax. |
| public <X> Root | from(EntityType<X>
metamodel entity representing the entity
of type X entityType)Implements javax. |
| public <X> Root | from(Class<X>
the entity class entityClass)Implements javax. |
| public CommonAbstractCriteria | getContainingQuery()
Implements javax. |
| public Set | getCorrelatedJoins()
Implements javax. |
| public List | getGroupList()
Implements javax. |
| public Predicate | getGroupRestriction()
Implements javax. |
| public AbstractQuery | getParent()
Implements javax. |
| public Predicate | getRestriction()
Implements javax. |
| public Class | getResultType()
Implements javax. |
| public Set | |
| public Expression | getSelection()
Implements javax. |
| public Subquery | groupBy(Expression<?>...
zero or more grouping expressions groupings)Implements javax. |
| public Subquery | groupBy(List<Expression<?>>
list of zero or more grouping expressions groupings)Implements javax. |
| public Subquery | having(Expression<Boolean>
a simple or compound boolean expression expression)Implements javax. |
| public Subquery | having(Predicate...
zero or more restriction predicates predicates)Implements javax. |
| public boolean | isDistinct()
Implements javax. |
| public void | registerParameters(ParameterRegistry
The parameter registry with which to register. registry)Implements org. |
| public String | render(RenderingContext renderingContext)
Implements org. |
| public Subquery | select(Expression<T>
expression specifying the item that
is to be returned as the subquery result expression)Implements javax. |
| public <U> Subquery | subquery(Class<U>
the subquery result type subqueryType)Implements javax. |
| public Subquery | where(Expression<Boolean>
a simple or compound boolean expression expression)Implements javax. |
| public Subquery | where(Predicate...
zero or more restriction predicates predicates)Implements javax. |
| parent | back to summary |
|---|---|
| private final CommonAbstractCriteria parent | |
| queryStructure | back to summary |
|---|---|
| private final QueryStructure<T> queryStructure | |
| wrappedSelection | back to summary |
|---|---|
| private Expression<T> wrappedSelection | |
| CriteriaSubqueryImpl | back to summary |
|---|---|
| public CriteriaSubqueryImpl(CriteriaBuilderImpl criteriaBuilder, Class<T> javaType, CommonAbstractCriteria parent) | |
| correlate | back to summary |
|---|---|
| public <Y> Root Implements javax. Doc from javax. Create a subquery root correlated to a root of the enclosing query. | |
| correlate | back to summary |
|---|---|
| public <X, Y> Join Implements javax. Doc from javax. Create a subquery join object correlated to a join object of the enclosing query. | |
| correlate | back to summary |
|---|---|
| public <X, Y> CollectionJoin Implements javax. Doc from javax. Create a subquery collection join object correlated to a collection join object of the enclosing query.
| |
| correlate | back to summary |
|---|---|
| public <X, Y> SetJoin Implements javax. Doc from javax. Create a subquery set join object correlated to a set join object of the enclosing query. | |
| correlate | back to summary |
|---|---|
| public <X, Y> ListJoin Implements javax. Doc from javax. Create a subquery list join object correlated to a list join object of the enclosing query. | |
| correlate | back to summary |
|---|---|
| public <X, K, V> MapJoin Implements javax. Doc from javax. Create a subquery map join object correlated to a map join object of the enclosing query. | |
| distinct | back to summary |
|---|---|
| public Subquery Implements javax. Doc from javax. Specify whether duplicate query results will be eliminated.
A true value will cause duplicates to be eliminated.
A false value will cause duplicates to be retained.
If distinct has not been specified, duplicate results must
be retained.
This method only overrides the return type of the
corresponding | |
| from | back to summary |
|---|---|
| public <X> Root Implements javax. Doc from javax. Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots.
| |
| from | back to summary |
|---|---|
| public <X> Root Implements javax. Doc from javax. Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots. | |
| getContainingQuery | back to summary |
|---|---|
| public CommonAbstractCriteria getContainingQuery() Implements javax. Doc from javax. Return the query of which this is a subquery. This may be a CriteriaQuery, CriteriaUpdate, CriteriaDelete, or a Subquery.
| |
| getCorrelatedJoins | back to summary |
|---|---|
| public Set Implements javax. Doc from javax. Return the correlated joins of the subquery. Returns empty set if the subquery has no correlated joins. Modifications to the set do not affect the query. | |
| getGroupList | back to summary |
|---|---|
| public List Implements javax. Doc from javax. Return a list of the grouping expressions. Returns empty list if no grouping expressions have been specified. Modifications to the list do not affect the query.
| |
| getGroupRestriction | back to summary |
|---|---|
| public Predicate getGroupRestriction() Implements javax. Doc from javax. Return the predicate that corresponds to the restriction(s) over the grouping items, or null if no restrictions have been specified. | |
| getParent | back to summary |
|---|---|
| public AbstractQuery Implements javax. Doc from javax. Return the query of which this is a subquery. This must be a CriteriaQuery or a Subquery.
| |
| getRestriction | back to summary |
|---|---|
| public Predicate getRestriction() Implements javax. Doc from javax. Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified. | |
| getResultType | back to summary |
|---|---|
| public Class Implements javax. Doc from javax. Return the result type of the query or subquery. If a result
type was specified as an argument to the
| |
| getRoots | back to summary |
|---|---|
| public Set Implements javax. Doc from javax. Return the query roots. These are the roots that have
been defined for the | |
| getSelection | back to summary |
|---|---|
| public Expression Implements javax. Doc from javax. Return the selection expression.
| |
| groupBy | back to summary |
|---|---|
| public Subquery Implements javax. Doc from javax. Specify the expressions that are used to form groups over
the subquery results.
Replaces the previous specified grouping expressions, if any.
If no grouping expressions are specified, any previously
added grouping expressions are simply removed.
This method only overrides the return type of the
corresponding
| |
| groupBy | back to summary |
|---|---|
| public Subquery Implements javax. Doc from javax. Specify the expressions that are used to form groups over
the subquery results.
Replaces the previous specified grouping expressions, if any.
If no grouping expressions are specified, any previously
added grouping expressions are simply removed.
This method only overrides the return type of the
corresponding
| |
| having | back to summary |
|---|---|
| public Subquery Implements javax. Doc from javax. Specify a restriction over the groups of the subquery.
Replaces the previous having restriction(s), if any.
This method only overrides the return type of the
corresponding
| |
| having | back to summary |
|---|---|
| public Subquery Implements javax. Doc from javax. Specify restrictions over the groups of the subquery
according the conjunction of the specified restriction
predicates.
Replaces the previously added having restriction(s), if any.
If no restrictions are specified, any previously added
restrictions are simply removed.
This method only overrides the return type of the
corresponding | |
| isDistinct | back to summary |
|---|---|
| public boolean isDistinct() Implements javax. Doc from javax. Return whether duplicate query results must be eliminated or retained.
| |
| registerParameters | back to summary |
|---|---|
| public void registerParameters(ParameterRegistry registry) Implements org. Doc from org. Register any parameters contained within this query component with the given registry.
| |
| render | back to summary |
|---|---|
| public String render(RenderingContext renderingContext) Implements org. Doc from org. Perform the rendering, returning the rendition
| |
| select | back to summary |
|---|---|
| public Subquery Implements javax. Doc from javax. Specify the item that is to be returned as the subquery result. Replaces the previously specified selection, if any.
| |
| subquery | back to summary |
|---|---|
| public <U> Subquery Implements javax. Doc from javax. Create a subquery of the query. | |
| where | back to summary |
|---|---|
| public Subquery Implements javax. Doc from javax. Modify the subquery to restrict the result according
to the specified boolean expression.
Replaces the previously added restriction(s), if any.
This method only overrides the return type of the
corresponding
| |
| where | back to summary |
|---|---|
| public Subquery Implements javax. Doc from javax. Modify the subquery to restrict the result according
to the conjunction of the specified restriction predicates.
Replaces the previously added restriction(s), if any.
If no restrictions are specified, any previously added
restrictions are simply removed.
This method only overrides the return type of the
corresponding | |
| Modifier and Type | Field and Description |
|---|---|
| private final CriteriaSubqueryImpl |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | render(RenderingContext renderingContext)
Implements org. |
| subQuery | back to summary |
|---|---|
| private final CriteriaSubqueryImpl<T> subQuery | |
| SubquerySelection | back to summary |
|---|---|
| public SubquerySelection(ExpressionImpl<S> wrapped, CriteriaSubqueryImpl<T> subQuery) | |
| render | back to summary |
|---|---|
| public String render(RenderingContext renderingContext) Implements org. Doc from org. Perform the rendering, returning the rendition
| |