Interface JpaSubQuery<T>
- All Superinterfaces:
AbstractQuery<T>, CommonAbstractCriteria, CriteriaSelect<T>, Expression<T>, JpaCriteriaBase, JpaCriteriaNode, JpaCriteriaSelect<T>, JpaCteContainer, JpaExpression<T>, JpaSelectCriteria<T>, JpaSelection<T>, JpaTupleElement<T>, Selection<T>, Serializable, Subquery<T>, TupleElement<T>
- All Known Implementing Classes:
SqmSubQuery
public interface JpaSubQuery<T>
extends Subquery<T>, JpaSelectCriteria<T>, JpaCriteriaSelect<T>, JpaExpression<T>, JpaCteContainer
-
Method Summary
Modifier and TypeMethodDescription<X,Y> JpaCollectionJoin <X, Y> correlate(CollectionJoin<X, Y> parentCollection) Correlate the given parent query element into this subquery.<X,Y> JpaJoin <X, Y> Correlate the given parent query element into this subquery.<X,Y> JpaListJoin <X, Y> Correlate the given parent query element into this subquery.<X,K, V> JpaMapJoin <X, K, V> Correlate the given parent query element into this subquery.<Y> JpaRoot<Y> Correlate the given parent query element into this subquery.<X,Y> JpaSetJoin <X, Y> Correlate the given parent query element into this subquery.<X,Y> JpaCrossJoin <X, Y> correlate(JpaCrossJoin<X, Y> parentCrossJoin) Correlate the given parent query element into this subquery.<X> JpaEntityJoin<T, X> correlate(JpaEntityJoin<T, X> parentEntityJoin) Correlate the given parent query element into this subquery.distinct(boolean distinct) Set whether duplicate subquery results are eliminated.Set the subquery fetch limit.fetch(Number fetch, FetchClauseType fetchClauseType) Set the subquery fetch limit.fetch(JpaExpression<? extends Number> fetch) fetch(JpaExpression<? extends Number> fetch, FetchClauseType fetchClauseType) Set the subquery fetch limit.getFetch()Set the subquery fetch limit.Return the fetch clause type.Set the subquery offset.Return the ordering expressions.Return the subquery selection.groupBy(Expression<?>... grouping) Set the grouping expressions.groupBy(List<Expression<?>> grouping) Set the grouping expressions.having(BooleanExpression... restrictions) Set the group restriction.having(Expression<Boolean> restriction) Set the group restriction.having(List<? extends Expression<Boolean>> restrictions) Set the group restriction.multiselect(Selection<?>... selections) Set the compound subquery selection.multiselect(List<Selection<?>> selectionList) Set the compound subquery selection.Set the subquery offset.offset(JpaExpression<? extends Number> offset) Set the ordering expressions.Set the ordering expressions.select(Expression<T> expression) Set the subquery selection.where(BooleanExpression... restrictions) Set the restriction.where(Expression<Boolean> restriction) Set the restriction.where(List<? extends Expression<Boolean>> restrictions) Set the restriction.Methods inherited from interface AbstractQuery
getGroupList, getResultType, getRootList, getRoots, isDistinctMethods inherited from interface CommonAbstractCriteria
getParameters, subqueryMethods inherited from interface JpaCriteriaBase
subqueryMethods inherited from interface JpaCteContainer
getCteCriteria, getCteCriterias, with, with, withRecursiveUnionAll, withRecursiveUnionAll, withRecursiveUnionDistinct, withRecursiveUnionDistinctMethods inherited from interface JpaExpression
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, cast, coalesce, coalesce, count, countDistinct, equalTo, equalTo, in, in, in, in, in, isMember, isNotMember, isNotNull, isNull, notEqualTo, notEqualTo, nullif, nullif, selectCase, selectCaseMethods inherited from interface JpaSelectCriteria
from, from, from, from, from, getGroupRestriction, getQueryPart, getQuerySpec, getRestrictionMethods inherited from interface JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface JpaTupleElement
getJavaType, getJavaTypeDescriptor, getJavaTypeIfKnown, getJavaTypeName, isEnumMethods inherited from interface Selection
isCompoundSelectionMethods inherited from interface Subquery
all, any, correlate, exists, getContainingQuery, getCorrelatedJoins, getParent, someMethods inherited from interface TupleElement
getAlias
-
Method Details
-
multiselect
Set the compound subquery selection. -
multiselect
-
correlate
Correlate the given parent query element into this subquery. -
correlate
Correlate the given parent query element into this subquery. -
getOffset
Set the subquery offset. -
offset
-
offset
Set the subquery offset. -
getFetch
Set the subquery fetch limit. -
fetch
-
fetch
@Nonnull JpaSubQuery<T> fetch(@Nullable JpaExpression<? extends Number> fetch, @Nonnull FetchClauseType fetchClauseType) Set the subquery fetch limit. -
fetch
Set the subquery fetch limit. -
fetch
Set the subquery fetch limit. -
getFetchClauseType
Return the fetch clause type. -
getOrderList
-
orderBy
Set the ordering expressions. -
orderBy
-
distinct
Set whether duplicate subquery results are eliminated.- Specified by:
distinctin interfaceAbstractQuery<T>- Specified by:
distinctin interfaceJpaSelectCriteria<T>- Specified by:
distinctin interfaceSubquery<T>
-
getSelection
Return the subquery selection.- Specified by:
getSelectionin interfaceAbstractQuery<T>- Specified by:
getSelectionin interfaceJpaSelectCriteria<T>- Specified by:
getSelectionin interfaceSubquery<T>
-
select
Set the subquery selection. -
where
Set the restriction.- Specified by:
wherein interfaceAbstractQuery<T>- Specified by:
wherein interfaceJpaSelectCriteria<T>- Specified by:
wherein interfaceSubquery<T>
-
where
Set the restriction.- Specified by:
wherein interfaceAbstractQuery<T>- Specified by:
wherein interfaceJpaSelectCriteria<T>- Specified by:
wherein interfaceSubquery<T>
-
where
Set the restriction.- Specified by:
wherein interfaceAbstractQuery<T>- Specified by:
wherein interfaceJpaSelectCriteria<T>- Specified by:
wherein interfaceSubquery<T>
-
groupBy
Set the grouping expressions.- Specified by:
groupByin interfaceAbstractQuery<T>- Specified by:
groupByin interfaceJpaSelectCriteria<T>- Specified by:
groupByin interfaceSubquery<T>
-
groupBy
Set the grouping expressions.- Specified by:
groupByin interfaceAbstractQuery<T>- Specified by:
groupByin interfaceJpaSelectCriteria<T>- Specified by:
groupByin interfaceSubquery<T>
-
having
Set the group restriction.- Specified by:
havingin interfaceAbstractQuery<T>- Specified by:
havingin interfaceJpaSelectCriteria<T>- Specified by:
havingin interfaceSubquery<T>
-
having
Set the group restriction.- Specified by:
havingin interfaceAbstractQuery<T>- Specified by:
havingin interfaceJpaSelectCriteria<T>- Specified by:
havingin interfaceSubquery<T>
-
having
Set the group restriction.- Specified by:
havingin interfaceAbstractQuery<T>- Specified by:
havingin interfaceJpaSelectCriteria<T>- Specified by:
havingin interfaceSubquery<T>
-
correlate
-
correlate
-
correlate
Correlate the given parent query element into this subquery. -
correlate
-
correlate
-
correlate
-