Package org.hibernate.query.criteria
Interface JpaCriteriaQuery<T>
-
- All Superinterfaces:
AbstractQuery<T>
,CommonAbstractCriteria
,CriteriaQuery<T>
,JpaCriteriaBase
,JpaCriteriaNode
,JpaCteContainer
,JpaQueryableCriteria<T>
,JpaSelectCriteria<T>
,Serializable
- All Known Implementing Classes:
CriteriaDefinition
,SqmSelectStatement
public interface JpaCriteriaQuery<T> extends CriteriaQuery<T>, JpaQueryableCriteria<T>, JpaSelectCriteria<T>
Extension of the JPACriteriaQuery
-
-
Method Summary
-
Methods inherited from interface jakarta.persistence.criteria.AbstractQuery
getGroupList, getResultType, getRoots, isDistinct
-
Methods inherited from interface org.hibernate.query.criteria.JpaCriteriaBase
subquery
-
Methods inherited from interface org.hibernate.query.criteria.JpaCteContainer
getCteCriteria, getCteCriterias, with, with, withRecursiveUnionAll, withRecursiveUnionAll, withRecursiveUnionDistinct, withRecursiveUnionDistinct
-
Methods inherited from interface org.hibernate.query.criteria.JpaSelectCriteria
from, from, getGroupRestriction, getQueryPart, getQuerySpec, getRestriction, getSelection
-
-
-
-
Method Detail
-
createCountQuery
JpaCriteriaQuery<Long> createCountQuery()
A query that returns the number of results of this query.- Since:
- 6.4
- See Also:
SelectionQuery.getResultCount()
-
getOffset
JpaExpression<Number> getOffset()
-
offset
JpaCriteriaQuery<T> offset(JpaExpression<? extends Number> offset)
-
offset
JpaCriteriaQuery<T> offset(Number offset)
-
getFetch
JpaExpression<Number> getFetch()
-
fetch
JpaCriteriaQuery<T> fetch(JpaExpression<? extends Number> fetch)
-
fetch
JpaCriteriaQuery<T> fetch(JpaExpression<? extends Number> fetch, FetchClauseType fetchClauseType)
-
fetch
JpaCriteriaQuery<T> fetch(Number fetch)
-
fetch
JpaCriteriaQuery<T> fetch(Number fetch, FetchClauseType fetchClauseType)
-
getFetchClauseType
FetchClauseType getFetchClauseType()
-
getOrderList
default List<Order> getOrderList()
- Specified by:
getOrderList
in interfaceCriteriaQuery<T>
-
getParameters
Set<ParameterExpression<?>> getParameters()
- Specified by:
getParameters
in interfaceCriteriaQuery<T>
- API Note:
- Warning! This actually walks the criteria tree looking for parameters nodes.
-
from
<X> JpaRoot<X> from(Class<X> entityClass)
- Specified by:
from
in interfaceAbstractQuery<T>
- Specified by:
from
in interfaceJpaSelectCriteria<T>
-
from
<X> JpaRoot<X> from(EntityType<X> entity)
- Specified by:
from
in interfaceAbstractQuery<T>
- Specified by:
from
in interfaceJpaSelectCriteria<T>
-
distinct
JpaCriteriaQuery<T> distinct(boolean distinct)
- Specified by:
distinct
in interfaceAbstractQuery<T>
- Specified by:
distinct
in interfaceCriteriaQuery<T>
- Specified by:
distinct
in interfaceJpaSelectCriteria<T>
-
select
JpaCriteriaQuery<T> select(Selection<? extends T> selection)
- Specified by:
select
in interfaceCriteriaQuery<T>
-
multiselect
JpaCriteriaQuery<T> multiselect(Selection<?>... selections)
- Specified by:
multiselect
in interfaceCriteriaQuery<T>
-
multiselect
JpaCriteriaQuery<T> multiselect(List<Selection<?>> selectionList)
- Specified by:
multiselect
in interfaceCriteriaQuery<T>
-
where
JpaCriteriaQuery<T> where(Expression<Boolean> restriction)
- Specified by:
where
in interfaceAbstractQuery<T>
- Specified by:
where
in interfaceCriteriaQuery<T>
- Specified by:
where
in interfaceJpaSelectCriteria<T>
-
where
JpaCriteriaQuery<T> where(Predicate... restrictions)
- Specified by:
where
in interfaceAbstractQuery<T>
- Specified by:
where
in interfaceCriteriaQuery<T>
- Specified by:
where
in interfaceJpaSelectCriteria<T>
-
groupBy
JpaCriteriaQuery<T> groupBy(Expression<?>... grouping)
- Specified by:
groupBy
in interfaceAbstractQuery<T>
- Specified by:
groupBy
in interfaceCriteriaQuery<T>
- Specified by:
groupBy
in interfaceJpaSelectCriteria<T>
-
groupBy
JpaCriteriaQuery<T> groupBy(List<Expression<?>> grouping)
- Specified by:
groupBy
in interfaceAbstractQuery<T>
- Specified by:
groupBy
in interfaceCriteriaQuery<T>
- Specified by:
groupBy
in interfaceJpaSelectCriteria<T>
-
having
JpaCriteriaQuery<T> having(Expression<Boolean> restriction)
- Specified by:
having
in interfaceAbstractQuery<T>
- Specified by:
having
in interfaceCriteriaQuery<T>
- Specified by:
having
in interfaceJpaSelectCriteria<T>
-
having
JpaCriteriaQuery<T> having(Predicate... restrictions)
- Specified by:
having
in interfaceAbstractQuery<T>
- Specified by:
having
in interfaceCriteriaQuery<T>
- Specified by:
having
in interfaceJpaSelectCriteria<T>
-
orderBy
JpaCriteriaQuery<T> orderBy(Order... o)
- Specified by:
orderBy
in interfaceCriteriaQuery<T>
-
orderBy
JpaCriteriaQuery<T> orderBy(List<Order> o)
- Specified by:
orderBy
in interfaceCriteriaQuery<T>
-
-