Subquery interface defines functionality that is
specific to subqueries.
A subquery has an expression as its selection item.
| Modifier and Type | Method and Description |
|---|---|
| public <Y> Root | |
| public <X, Y> Join | |
| public <X, Y> CollectionJoin | Returns: subquery joinjoin object of the containing query parentCollection)Create a subquery collection join object correlated to a collection join object of the enclosing query. |
| public <X, Y> SetJoin | |
| public <X, Y> ListJoin | |
| public <X, K, V> MapJoin | |
| public Subquery | Returns: the modified subquery.boolean value specifying whether duplicate
results must be eliminated from the subquery result or
whether they must be retained distinct)Redeclares javax. |
| public CommonAbstractCriteria | Returns: the enclosing query or subqueryReturn the query of which this is a subquery. |
| public Set | Returns: the correlated joins of the subqueryReturn the correlated joins of the subquery. |
| public AbstractQuery | |
| public Expression | Returns: the item to be returned in the subquery resultRedeclares javax. |
| public Subquery | Returns: the modified subqueryzero or more grouping expressions grouping)Redeclares javax. |
| public Subquery | Returns: the modified subquerylist of zero or more grouping expressions grouping)Redeclares javax. |
| public Subquery | Returns: the modified subquerya simple or compound boolean expression restriction)Redeclares javax. |
| public Subquery | Returns: the modified subqueryzero or more restriction predicates restrictions)Redeclares javax. |
| public Subquery | Returns: the modified subqueryexpression specifying the item that
is to be returned as the subquery result expression)Specify the item that is to be returned as the subquery result. |
| public Subquery | Returns: the modified subquerya simple or compound boolean expression restriction)Redeclares javax. |
| public Subquery | Returns: the modified subqueryzero or more restriction predicates restrictions)Redeclares javax. |
| correlate | back to summary |
|---|---|
| public <Y> Root Create a subquery root correlated to a root of the enclosing query. | |
| correlate | back to summary |
|---|---|
| public <X, Y> Join Create a subquery join object correlated to a join object of the enclosing query. | |
| correlate | back to summary |
|---|---|
| public <X, Y> CollectionJoin Create a subquery collection join object correlated to a collection join object of the enclosing query.
| |
| correlate | back to summary |
|---|---|
| public <X, Y> SetJoin Create a subquery set join object correlated to a set join object of the enclosing query. | |
| correlate | back to summary |
|---|---|
| public <X, Y> ListJoin 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 Create a subquery map join object correlated to a map join object of the enclosing query. | |
| distinct | back to summary |
|---|---|
| public Subquery Redeclares 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
| |
| getContainingQuery | back to summary |
|---|---|
| public CommonAbstractCriteria getContainingQuery() 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 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. | |
| getParent | back to summary |
|---|---|
| public AbstractQuery Return the query of which this is a subquery. This must be a CriteriaQuery or a Subquery.
| |
| getSelection | back to summary |
|---|---|
| public Expression Redeclares javax. Return the selection expression.
| |
| groupBy | back to summary |
|---|---|
| public Subquery Redeclares 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 Redeclares 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 Redeclares 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 Redeclares 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 | |
| select | back to summary |
|---|---|
| public Subquery Specify the item that is to be returned as the subquery result. Replaces the previously specified selection, if any.
| |
| where | back to summary |
|---|---|
| public Subquery Redeclares 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 Redeclares 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 | |