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, where
Methods inherited from interface jakarta.persistence.criteria.CommonAbstractCriteria
getParameters, subquery
Methods inherited from interface org.hibernate.query.criteria.JpaCriteriaBase
subquery
-
Method Details
-
getQuerySpec
JpaQueryStructure<T> getQuerySpec()The query structure. SeeJpaQueryStructure
for details -
getQueryPart
JpaQueryPart<T> getQueryPart()The query structure. SeeJpaQueryStructure
for 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:
distinct
in interfaceAbstractQuery<T>
-
getSelection
JpaSelection<T> getSelection()- Specified by:
getSelection
in interfaceAbstractQuery<T>
-
from
- Specified by:
from
in interfaceAbstractQuery<T>
-
from
- Specified by:
from
in interfaceAbstractQuery<T>
-
getRestriction
JpaPredicate getRestriction()- Specified by:
getRestriction
in interfaceCommonAbstractCriteria
- Specified by:
getRestriction
in interfaceJpaCriteriaBase
-
where
- Specified by:
where
in interfaceAbstractQuery<T>
-
where
- Specified by:
where
in interfaceAbstractQuery<T>
-
groupBy
- Specified by:
groupBy
in interfaceAbstractQuery<T>
-
groupBy
- Specified by:
groupBy
in interfaceAbstractQuery<T>
-
getGroupRestriction
JpaPredicate getGroupRestriction()- Specified by:
getGroupRestriction
in interfaceAbstractQuery<T>
-
having
- Specified by:
having
in interfaceAbstractQuery<T>
-
having
- Specified by:
having
in interfaceAbstractQuery<T>
-