Interface PersistentEntityCriteriaQuery<T>
- Type Parameters:
T
- The entity type
- All Superinterfaces:
jakarta.persistence.criteria.AbstractQuery<T>
,jakarta.persistence.criteria.CommonAbstractCriteria
,jakarta.persistence.criteria.CriteriaQuery<T>
- All Known Subinterfaces:
SourcePersistentEntityCriteriaQuery<T>
- All Known Implementing Classes:
AbstractPersistentEntityCriteriaQuery
public interface PersistentEntityCriteriaQuery<T>
extends jakarta.persistence.criteria.CriteriaQuery<T>
The persistent entity
CriteriaQuery
.- Since:
- 3.2
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescription@NonNull PersistentEntityCriteriaQuery<T>
distinct
(boolean distinct) default @NonNull PersistentEntityCriteriaQuery<T>
forUpdate
(boolean forUpdate) <X> @NonNull PersistentEntityRoot<X>
from
(@NonNull PersistentEntity persistentEntity) <X> @NonNull PersistentEntityRoot<X>
from
(@NonNull jakarta.persistence.metamodel.EntityType<X> entity) <X> @NonNull PersistentEntityRoot<X>
@NonNull PersistentEntityCriteriaQuery<T>
groupBy
(@NonNull jakarta.persistence.criteria.Expression<?>... grouping) @NonNull PersistentEntityCriteriaQuery<T>
@NonNull PersistentEntityCriteriaQuery<T>
@NonNull PersistentEntityCriteriaQuery<T>
having
(@NonNull jakarta.persistence.criteria.Predicate... restrictions) @NonNull PersistentEntityCriteriaQuery<T>
max
(int max) @NonNull PersistentEntityCriteriaQuery<T>
multiselect
(@NonNull jakarta.persistence.criteria.Selection<?>... selections) @NonNull PersistentEntityCriteriaQuery<T>
multiselect
(@NonNull List<jakarta.persistence.criteria.Selection<?>> selectionList) @NonNull PersistentEntityCriteriaQuery<T>
offset
(int offset) @NonNull PersistentEntityCriteriaQuery<T>
orderBy
(@NonNull jakarta.persistence.criteria.Order... o) @NonNull PersistentEntityCriteriaQuery<T>
@NonNull PersistentEntityCriteriaQuery<T>
@NonNull PersistentEntityCriteriaQuery<T>
@NonNull PersistentEntityCriteriaQuery<T>
where
(@NonNull jakarta.persistence.criteria.Predicate... restrictions) Methods inherited from interface jakarta.persistence.criteria.AbstractQuery
getGroupList, getGroupRestriction, getResultType, getRoots, getSelection, isDistinct
Methods inherited from interface jakarta.persistence.criteria.CommonAbstractCriteria
getRestriction, subquery
Methods inherited from interface jakarta.persistence.criteria.CriteriaQuery
getOrderList, getParameters
-
Method Details
-
from
@NonNull <X> @NonNull PersistentEntityRoot<X> from(@NonNull @NonNull PersistentEntity persistentEntity) -
from
- Specified by:
from
in interfacejakarta.persistence.criteria.AbstractQuery<T>
-
from
@NonNull <X> @NonNull PersistentEntityRoot<X> from(@NonNull @NonNull jakarta.persistence.metamodel.EntityType<X> entity) - Specified by:
from
in interfacejakarta.persistence.criteria.AbstractQuery<T>
-
max
-
offset
-
forUpdate
-
select
@NonNull @NonNull PersistentEntityCriteriaQuery<T> select(@NonNull @NonNull jakarta.persistence.criteria.Selection<? extends T> selection) - Specified by:
select
in interfacejakarta.persistence.criteria.CriteriaQuery<T>
-
multiselect
@NonNull @NonNull PersistentEntityCriteriaQuery<T> multiselect(@NonNull @NonNull jakarta.persistence.criteria.Selection<?>... selections) - Specified by:
multiselect
in interfacejakarta.persistence.criteria.CriteriaQuery<T>
-
multiselect
@NonNull @NonNull PersistentEntityCriteriaQuery<T> multiselect(@NonNull @NonNull List<jakarta.persistence.criteria.Selection<?>> selectionList) - Specified by:
multiselect
in interfacejakarta.persistence.criteria.CriteriaQuery<T>
-
where
@NonNull @NonNull PersistentEntityCriteriaQuery<T> where(@NonNull @NonNull jakarta.persistence.criteria.Expression<Boolean> restriction) -
where
@NonNull @NonNull PersistentEntityCriteriaQuery<T> where(@NonNull @NonNull jakarta.persistence.criteria.Predicate... restrictions) -
groupBy
@NonNull @NonNull PersistentEntityCriteriaQuery<T> groupBy(@NonNull @NonNull jakarta.persistence.criteria.Expression<?>... grouping) -
groupBy
@NonNull @NonNull PersistentEntityCriteriaQuery<T> groupBy(@NonNull @NonNull List<jakarta.persistence.criteria.Expression<?>> grouping) -
having
@NonNull @NonNull PersistentEntityCriteriaQuery<T> having(@NonNull @NonNull jakarta.persistence.criteria.Expression<Boolean> restriction) -
having
@NonNull @NonNull PersistentEntityCriteriaQuery<T> having(@NonNull @NonNull jakarta.persistence.criteria.Predicate... restrictions) -
orderBy
@NonNull @NonNull PersistentEntityCriteriaQuery<T> orderBy(@NonNull @NonNull jakarta.persistence.criteria.Order... o) - Specified by:
orderBy
in interfacejakarta.persistence.criteria.CriteriaQuery<T>
-
orderBy
@NonNull @NonNull PersistentEntityCriteriaQuery<T> orderBy(@NonNull @NonNull List<jakarta.persistence.criteria.Order> o) - Specified by:
orderBy
in interfacejakarta.persistence.criteria.CriteriaQuery<T>
-
distinct
-