Interface JpaQueryStructure<T>
- All Superinterfaces:
JpaCriteriaNode, JpaQueryPart<T>, Serializable
- All Known Implementing Classes:
SqmQuerySpec
- See Also:
- API Note:
- Internally (HQL and SQM) Hibernate supports ordering and limiting for both root- and sub- criteria even though JPA only defines support for them on a root.
-
Method Summary
Modifier and TypeMethodDescriptionAdd a query root.List<? extends JpaExpression<?>> Return the grouping expressions.Return the group restriction.Set the restriction.Return the query roots as a list.getRoots()Return the query roots.Return the query selection.booleanReturn whether duplicate query results are eliminated.setDistinct(boolean distinct) Set whether duplicate query results are eliminated.setFetch(JpaExpression<? extends Number> fetch) Set the query fetch limit.setFetch(JpaExpression<? extends Number> fetch, FetchClauseType fetchClauseType) Set the query fetch limit.setGroupingExpressions(Expression<?>... grouping) Set the grouping expressions.setGroupingExpressions(List<? extends Expression<?>> grouping) Set the grouping expressions.setGroupRestriction(BooleanExpression... restrictions) Set the group restriction.setGroupRestriction(Expression<Boolean> restriction) Set the group restriction.setGroupRestriction(Predicate... restrictions) Set the group restriction.setGroupRestriction(List<Predicate> restrictions) Set the group restriction.setGroupRestriction(JpaPredicate restrictions) Set the group restriction.setOffset(JpaExpression<? extends Number> offset) Set the query offset.setRestriction(BooleanExpression... restrictions) Set the restriction.setRestriction(Expression<Boolean> restriction) Set the restriction.setRestriction(Predicate... restrictions) Set the restriction.setRestriction(List<Predicate> restrictions) Set the restriction.setRestriction(JpaPredicate restriction) setSelection(JpaSelection<T> selection) Set the query selection.setSortSpecifications(List<? extends JpaOrder> sortSpecifications) Set the ordering specifications.Methods inherited from interface JpaQueryPart
getFetch, getFetchClauseType, getOffset, getSortSpecifications
-
Method Details
-
isDistinct
boolean isDistinct()Return whether duplicate query results are eliminated. -
setDistinct
Set whether duplicate query results are eliminated. -
getSelection
Return the query selection. -
setSelection
Set the query selection. -
getRoots
-
getRootList
-
addRoot
Add a query root. -
getRestriction
Set the restriction. -
setRestriction
-
setRestriction
Set the restriction. -
setRestriction
Set the restriction. -
setRestriction
Set the restriction. -
setRestriction
-
getGroupingExpressions
Return the grouping expressions. -
setGroupingExpressions
@Nonnull JpaQueryStructure<T> setGroupingExpressions(@Nonnull List<? extends Expression<?>> grouping) Set the grouping expressions. -
setGroupingExpressions
Set the grouping expressions. -
getGroupRestriction
Return the group restriction. -
setGroupRestriction
Set the group restriction. -
setGroupRestriction
Set the group restriction. -
setGroupRestriction
Set the group restriction. -
setGroupRestriction
Set the group restriction. -
setGroupRestriction
-
setSortSpecifications
@Nonnull JpaQueryStructure<T> setSortSpecifications(@Nonnull List<? extends JpaOrder> sortSpecifications) Set the ordering specifications.- Specified by:
setSortSpecificationsin interfaceJpaQueryPart<T>
-
setOffset
Set the query offset.- Specified by:
setOffsetin interfaceJpaQueryPart<T>
-
setFetch
Set the query fetch limit.- Specified by:
setFetchin interfaceJpaQueryPart<T>
-
setFetch
@Nonnull JpaQueryStructure<T> setFetch(@Nullable JpaExpression<? extends Number> fetch, @Nonnull FetchClauseType fetchClauseType) Set the query fetch limit.- Specified by:
setFetchin interfaceJpaQueryPart<T>
-