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
public interface JpaSelectCriteria<T> extends AbstractQuery<T>, JpaCriteriaBase
Commonality between a JPAJpaCriteriaQuery
andJpaSubQuery
, 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.JpaPredicate
getGroupRestriction()
JpaQueryPart<T>
getQueryPart()
The query structure.JpaQueryStructure<T>
getQuerySpec()
The query structure.JpaPredicate
getRestriction()
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. SeeJpaQueryStructure
for details
-
getQueryPart
JpaQueryPart<T> getQueryPart()
The query structure. SeeJpaQueryStructure
for 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:
distinct
in interfaceAbstractQuery<T>
-
getSelection
JpaSelection<T> getSelection()
- Specified by:
getSelection
in interfaceAbstractQuery<T>
-
from
<X> JpaRoot<X> from(Class<X> entityClass)
- Specified by:
from
in interfaceAbstractQuery<T>
-
from
<X> JpaRoot<X> from(EntityType<X> entity)
- Specified by:
from
in interfaceAbstractQuery<T>
-
getRestriction
JpaPredicate getRestriction()
- Specified by:
getRestriction
in interfaceCommonAbstractCriteria
- Specified by:
getRestriction
in interfaceJpaCriteriaBase
-
where
JpaSelectCriteria<T> where(Expression<Boolean> restriction)
- Specified by:
where
in interfaceAbstractQuery<T>
-
where
JpaSelectCriteria<T> where(Predicate... restrictions)
- Specified by:
where
in interfaceAbstractQuery<T>
-
groupBy
JpaSelectCriteria<T> groupBy(Expression<?>... grouping)
- Specified by:
groupBy
in interfaceAbstractQuery<T>
-
groupBy
JpaSelectCriteria<T> groupBy(List<Expression<?>> grouping)
- Specified by:
groupBy
in interfaceAbstractQuery<T>
-
getGroupRestriction
JpaPredicate getGroupRestriction()
- Specified by:
getGroupRestriction
in interfaceAbstractQuery<T>
-
having
JpaSelectCriteria<T> having(Expression<Boolean> restriction)
- Specified by:
having
in interfaceAbstractQuery<T>
-
having
JpaSelectCriteria<T> having(Predicate... restrictions)
- Specified by:
having
in interfaceAbstractQuery<T>
-
-