Interface JpaSelectCriteria<T>
- All Superinterfaces:
AbstractQuery<T>, CommonAbstractCriteria, JpaCriteriaBase, JpaCriteriaNode, Serializable
- All Known Subinterfaces:
JpaCriteriaQuery<T>, JpaSubQuery<T>, SqmSelectQuery<T>
- All Known Implementing Classes:
AbstractSqmSelectQuery, CriteriaDefinition, SqmSelectStatement, SqmSubQuery
Commonality between a JPA
JpaCriteriaQuery and JpaSubQuery,
mainly in the form of delegation to JpaQueryStructure-
Method Summary
Modifier and TypeMethodDescriptiondistinct(boolean distinct) <X> JpaDerivedRoot<X> Create and add a query root corresponding to the given subquery, forming a cartesian product with any existing roots.<X> JpaRoot<X> from(EntityType<X> entity) <X> JpaRoot<X> <X> JpaRoot<X> from(JpaCteCriteria<X> cte) Create and add a query root corresponding to the given cte, forming a cartesian product with any existing roots.<X> JpaFunctionRoot<X> from(JpaSetReturningFunction<X> function) Create and add a query root corresponding to the given set-returning function, forming a cartesian product with any existing roots.@Nullable JpaPredicateThe query structure.The query structure.@Nullable JpaPredicate@Nullable JpaSelection<T> groupBy(Expression<?>... grouping) groupBy(List<Expression<?>> grouping) having(@Nullable Expression<Boolean> restriction) where(@Nullable Expression<Boolean> restriction) Methods inherited from interface AbstractQuery
getGroupList, getResultType, getRoots, having, isDistinct, whereMethods inherited from interface CommonAbstractCriteria
getParameters, subqueryMethods inherited from interface JpaCriteriaBase
subquery
-
Method Details
-
getQuerySpec
JpaQueryStructure<T> getQuerySpec()The query structure. SeeJpaQueryStructurefor details -
getQueryPart
JpaQueryPart<T> getQueryPart()The query structure. SeeJpaQueryStructurefor details -
from
Create and add a query root corresponding to the given subquery, forming a cartesian product with any existing roots.- Parameters:
subquery- the subquery- Returns:
- query root corresponding to the given subquery
-
from
Create and add a query root corresponding to the given cte, forming a cartesian product with any existing roots.- Parameters:
cte- the cte criteria- Returns:
- query root corresponding to the given cte
-
from
Create and add a query root corresponding to the given set-returning function, forming a cartesian product with any existing roots.- Parameters:
function- the set-returning function- Returns:
- query root corresponding to the given function
-
distinct
- Specified by:
distinctin interfaceAbstractQuery<T>
-
getSelection
@Nullable JpaSelection<T> getSelection()- Specified by:
getSelectionin interfaceAbstractQuery<T>
-
from
- Specified by:
fromin interfaceAbstractQuery<T>
-
from
- Specified by:
fromin interfaceAbstractQuery<T>
-
getRestriction
@Nullable JpaPredicate getRestriction()- Specified by:
getRestrictionin interfaceCommonAbstractCriteria- Specified by:
getRestrictionin interfaceJpaCriteriaBase
-
where
- Specified by:
wherein interfaceAbstractQuery<T>
-
where
- Specified by:
wherein interfaceAbstractQuery<T>
-
groupBy
- Specified by:
groupByin interfaceAbstractQuery<T>
-
groupBy
- Specified by:
groupByin interfaceAbstractQuery<T>
-
getGroupRestriction
@Nullable JpaPredicate getGroupRestriction()- Specified by:
getGroupRestrictionin interfaceAbstractQuery<T>
-
having
- Specified by:
havingin interfaceAbstractQuery<T>
-
having
- Specified by:
havingin interfaceAbstractQuery<T>
-