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>
,PersistentEntityCommonAbstractCriteria
,PersistentEntityQuery<T>
- All Known Subinterfaces:
SourcePersistentEntityCriteriaQuery<T>
- All Known Implementing Classes:
AbstractPersistentEntityCriteriaQuery
public interface PersistentEntityCriteriaQuery<T>
extends jakarta.persistence.criteria.CriteriaQuery<T>, PersistentEntityQuery<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) Create a root usingPersistentEntity
.<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>
limit
(int limit) Sets the limit to the query.@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) Sets the offset to the query.@NonNull PersistentEntityCriteriaQuery<T>
orderBy
(@NonNull jakarta.persistence.criteria.Order... orders) Ordering of the query.@NonNull PersistentEntityCriteriaQuery<T>
Ordering of the query.@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
Methods inherited from interface jakarta.persistence.criteria.CriteriaQuery
getOrderList, getParameters
Methods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityCommonAbstractCriteria
subquery, subquery
-
Method Details
-
from
@NonNull <X> @NonNull PersistentEntityRoot<X> from(@NonNull @NonNull PersistentEntity persistentEntity) Description copied from interface:PersistentEntityQuery
Create a root usingPersistentEntity
.- Specified by:
from
in interfacePersistentEntityQuery<T>
- Type Parameters:
X
- The root type- Parameters:
persistentEntity
- The persistent entity- Returns:
- The root
-
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>
-
limit
Description copied from interface:PersistentEntityQuery
Sets the limit to the query.- Specified by:
limit
in interfacePersistentEntityQuery<T>
- Parameters:
limit
- The limit- Returns:
- The query
-
offset
Description copied from interface:PersistentEntityQuery
Sets the offset to the query.- Specified by:
offset
in interfacePersistentEntityQuery<T>
- Parameters:
offset
- The offset- Returns:
- The query
-
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... orders) Description copied from interface:PersistentEntityQuery
Ordering of the query.- Specified by:
orderBy
in interfacejakarta.persistence.criteria.CriteriaQuery<T>
- Specified by:
orderBy
in interfacePersistentEntityQuery<T>
- Parameters:
orders
- The order- Returns:
- The query
-
orderBy
@NonNull @NonNull PersistentEntityCriteriaQuery<T> orderBy(@NonNull @NonNull List<jakarta.persistence.criteria.Order> orders) Description copied from interface:PersistentEntityQuery
Ordering of the query.- Specified by:
orderBy
in interfacejakarta.persistence.criteria.CriteriaQuery<T>
- Specified by:
orderBy
in interfacePersistentEntityQuery<T>
- Parameters:
orders
- The order- Returns:
- The query
-
distinct
-