Package org.hibernate.query.criteria
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.The query structure.The query structure.groupBy(Expression<?>... grouping) groupBy(List<Expression<?>> grouping) having(Expression<Boolean> restriction) where(Expression<Boolean> restriction) Methods inherited from interface jakarta.persistence.criteria.AbstractQuery
getGroupList, getResultType, getRoots, having, isDistinct, whereMethods inherited from interface jakarta.persistence.criteria.CommonAbstractCriteria
getParameters, subqueryMethods inherited from interface org.hibernate.query.criteria.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
JpaSelection<T> getSelection()- Specified by:
getSelectionin interfaceAbstractQuery<T>
-
from
- Specified by:
fromin interfaceAbstractQuery<T>
-
from
- Specified by:
fromin interfaceAbstractQuery<T>
-
getRestriction
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
JpaPredicate getGroupRestriction()- Specified by:
getGroupRestrictionin interfaceAbstractQuery<T>
-
having
- Specified by:
havingin interfaceAbstractQuery<T>
-
having
- Specified by:
havingin interfaceAbstractQuery<T>
-