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,SqmSelectStatement,SqmSubQuery
public interface JpaSelectCriteria<T> extends AbstractQuery<T>, JpaCriteriaBase
Commonality between a JPAJpaCriteriaQueryandJpaSubQuery, mainly in the form of delegation toJpaQueryStructure
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JpaSelectCriteria<T>distinct(boolean distinct)<X> JpaDerivedRoot<X>from(Subquery<X> subquery)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>from(Class<X> entityClass)<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.JpaPredicategetGroupRestriction()JpaQueryPart<T>getQueryPart()The query structure.JpaQueryStructure<T>getQuerySpec()The query structure.JpaPredicategetRestriction()JpaSelection<T>getSelection()JpaSelectCriteria<T>groupBy(Expression<?>... grouping)JpaSelectCriteria<T>groupBy(List<Expression<?>> grouping)JpaSelectCriteria<T>having(Expression<Boolean> restriction)JpaSelectCriteria<T>having(Predicate... restrictions)JpaSelectCriteria<T>where(Expression<Boolean> restriction)JpaSelectCriteria<T>where(Predicate... restrictions)-
Methods inherited from interface jakarta.persistence.criteria.AbstractQuery
getGroupList, getResultType, getRoots, isDistinct
-
Methods inherited from interface org.hibernate.query.criteria.JpaCriteriaBase
subquery
-
-
-
-
Method Detail
-
getQuerySpec
JpaQueryStructure<T> getQuerySpec()
The query structure. SeeJpaQueryStructurefor details
-
getQueryPart
JpaQueryPart<T> getQueryPart()
The query structure. SeeJpaQueryStructurefor details
-
from
<X> JpaDerivedRoot<X> from(Subquery<X> subquery)
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
<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.- Parameters:
cte- the cte criteria- Returns:
- query root corresponding to the given cte
-
distinct
JpaSelectCriteria<T> distinct(boolean distinct)
- Specified by:
distinctin interfaceAbstractQuery<T>
-
getSelection
JpaSelection<T> getSelection()
- Specified by:
getSelectionin interfaceAbstractQuery<T>
-
from
<X> JpaRoot<X> from(Class<X> entityClass)
- Specified by:
fromin interfaceAbstractQuery<T>
-
from
<X> JpaRoot<X> from(EntityType<X> entity)
- Specified by:
fromin interfaceAbstractQuery<T>
-
getRestriction
JpaPredicate getRestriction()
- Specified by:
getRestrictionin interfaceCommonAbstractCriteria- Specified by:
getRestrictionin interfaceJpaCriteriaBase
-
where
JpaSelectCriteria<T> where(Expression<Boolean> restriction)
- Specified by:
wherein interfaceAbstractQuery<T>
-
where
JpaSelectCriteria<T> where(Predicate... restrictions)
- Specified by:
wherein interfaceAbstractQuery<T>
-
groupBy
JpaSelectCriteria<T> groupBy(Expression<?>... grouping)
- Specified by:
groupByin interfaceAbstractQuery<T>
-
groupBy
JpaSelectCriteria<T> groupBy(List<Expression<?>> grouping)
- Specified by:
groupByin interfaceAbstractQuery<T>
-
getGroupRestriction
JpaPredicate getGroupRestriction()
- Specified by:
getGroupRestrictionin interfaceAbstractQuery<T>
-
having
JpaSelectCriteria<T> having(Expression<Boolean> restriction)
- Specified by:
havingin interfaceAbstractQuery<T>
-
having
JpaSelectCriteria<T> having(Predicate... restrictions)
- Specified by:
havingin interfaceAbstractQuery<T>
-
-