T - the type of the selection item.public interface Subquery<T> extends AbstractQuery<T>, Expression<T>
Subquery interface defines functionality that is specific to subqueries.
A subquery has an expression as its selection item.| Modifier and Type | Method and Description |
|---|---|
Subquery<T> |
distinct(boolean distinct)
Specify whether duplicate query results will be eliminated.
|
CommonAbstractCriteria |
getContainingQuery()
Return the query of which this is a subquery.
|
AbstractQuery<?> |
getParent()
Return the query of which this is a subquery.
|
Expression<T> |
getSelection()
Return the selection expression.
|
Subquery<T> |
groupBy(Expression<?>... grouping)
Specify the expressions that are used to form groups over the subquery results.
|
Subquery<T> |
groupBy(List<Expression<?>> grouping)
Specify the expressions that are used to form groups over the subquery results.
|
Subquery<T> |
having(Expression<Boolean> restriction)
Specify a restriction over the groups of the subquery.
|
Subquery<T> |
having(Predicate... restrictions)
Specify restrictions over the groups of the subquery according the conjunction of the specified restriction
predicates.
|
Subquery<T> |
select(Expression<T> expression)
Specify the item that is to be returned as the subquery result.
|
Subquery<T> |
where(Expression<Boolean> restriction)
Modify the subquery to restrict the result according to the specified boolean expression.
|
Subquery<T> |
where(Predicate... restrictions)
Modify the subquery to restrict the result according to the conjunction of the specified restriction predicates.
|
from, from, getGroupList, getGroupRestriction, getResultType, getRoots, isDistinctgetRestriction, subqueryas, in, in, in, in, isNotNull, isNullalias, getAlias, getCompoundSelectionItems, getJavaType, isCompoundSelectionSubquery<T> select(Expression<T> expression)
expression - expression specifying the item that is to be returned as the subquery resultSubquery<T> where(Expression<Boolean> restriction)
AbstractQuery method.where in interface AbstractQuery<T>restriction - a simple or compound boolean expressionSubquery<T> where(Predicate... restrictions)
AbstractQuery method.where in interface AbstractQuery<T>restrictions - zero or more restriction predicatesSubquery<T> groupBy(Expression<?>... grouping)
AbstractQuery
method.groupBy in interface AbstractQuery<T>grouping - zero or more grouping expressionsSubquery<T> groupBy(List<Expression<?>> grouping)
AbstractQuery
method.groupBy in interface AbstractQuery<T>grouping - list of zero or more grouping expressionsSubquery<T> having(Expression<Boolean> restriction)
AbstractQuery method.having in interface AbstractQuery<T>restriction - a simple or compound boolean expressionSubquery<T> having(Predicate... restrictions)
AbstractQuery method.having in interface AbstractQuery<T>restrictions - zero or more restriction predicatesSubquery<T> distinct(boolean distinct)
AbstractQuery method.distinct in interface AbstractQuery<T>distinct - boolean value specifying whether duplicate results must be eliminated from the subquery result or
whether they must be retainedAbstractQuery<?> getParent()
CommonAbstractCriteria getContainingQuery()
Expression<T> getSelection()
getSelection in interface AbstractQuery<T>Copyright © 2084–2018 dukeware.com. All rights reserved.