Package org.hibernate.query.criteria
Interface JpaSelectCriteria<T>
-
- All Superinterfaces:
jakarta.persistence.criteria.AbstractQuery<T>
,jakarta.persistence.criteria.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 jakarta.persistence.criteria.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(jakarta.persistence.criteria.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(jakarta.persistence.metamodel.EntityType<X> entity)
<X> JpaRoot<X>
from(Class<X> entityClass)
JpaPredicate
getGroupRestriction()
JpaQueryPart<T>
getQueryPart()
The query structure.JpaQueryStructure<T>
getQuerySpec()
The query structure.JpaPredicate
getRestriction()
JpaSelection<T>
getSelection()
JpaSelectCriteria<T>
groupBy(jakarta.persistence.criteria.Expression<?>... grouping)
JpaSelectCriteria<T>
groupBy(List<jakarta.persistence.criteria.Expression<?>> grouping)
JpaSelectCriteria<T>
having(jakarta.persistence.criteria.Expression<Boolean> restriction)
JpaSelectCriteria<T>
having(jakarta.persistence.criteria.Predicate... restrictions)
JpaSelectCriteria<T>
where(jakarta.persistence.criteria.Expression<Boolean> restriction)
JpaSelectCriteria<T>
where(jakarta.persistence.criteria.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(jakarta.persistence.criteria.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
-
distinct
JpaSelectCriteria<T> distinct(boolean distinct)
- Specified by:
distinct
in interfacejakarta.persistence.criteria.AbstractQuery<T>
-
getSelection
JpaSelection<T> getSelection()
- Specified by:
getSelection
in interfacejakarta.persistence.criteria.AbstractQuery<T>
-
from
<X> JpaRoot<X> from(Class<X> entityClass)
- Specified by:
from
in interfacejakarta.persistence.criteria.AbstractQuery<T>
-
from
<X> JpaRoot<X> from(jakarta.persistence.metamodel.EntityType<X> entity)
- Specified by:
from
in interfacejakarta.persistence.criteria.AbstractQuery<T>
-
getRestriction
JpaPredicate getRestriction()
- Specified by:
getRestriction
in interfacejakarta.persistence.criteria.CommonAbstractCriteria
- Specified by:
getRestriction
in interfaceJpaCriteriaBase
-
where
JpaSelectCriteria<T> where(jakarta.persistence.criteria.Expression<Boolean> restriction)
- Specified by:
where
in interfacejakarta.persistence.criteria.AbstractQuery<T>
-
where
JpaSelectCriteria<T> where(jakarta.persistence.criteria.Predicate... restrictions)
- Specified by:
where
in interfacejakarta.persistence.criteria.AbstractQuery<T>
-
groupBy
JpaSelectCriteria<T> groupBy(jakarta.persistence.criteria.Expression<?>... grouping)
- Specified by:
groupBy
in interfacejakarta.persistence.criteria.AbstractQuery<T>
-
groupBy
JpaSelectCriteria<T> groupBy(List<jakarta.persistence.criteria.Expression<?>> grouping)
- Specified by:
groupBy
in interfacejakarta.persistence.criteria.AbstractQuery<T>
-
getGroupRestriction
JpaPredicate getGroupRestriction()
- Specified by:
getGroupRestriction
in interfacejakarta.persistence.criteria.AbstractQuery<T>
-
having
JpaSelectCriteria<T> having(jakarta.persistence.criteria.Expression<Boolean> restriction)
- Specified by:
having
in interfacejakarta.persistence.criteria.AbstractQuery<T>
-
having
JpaSelectCriteria<T> having(jakarta.persistence.criteria.Predicate... restrictions)
- Specified by:
having
in interfacejakarta.persistence.criteria.AbstractQuery<T>
-
-