Interface PersistentEntityQuery<T>
- Type Parameters:
T
- The type of the result
- All Superinterfaces:
jakarta.persistence.criteria.AbstractQuery<T>
,jakarta.persistence.criteria.CommonAbstractCriteria
,PersistentEntityCommonAbstractCriteria
- All Known Subinterfaces:
PersistentEntityCriteriaQuery<T>
,PersistentEntitySubquery<T>
,SourcePersistentEntityCriteriaQuery<T>
,SourcePersistentEntitySubquery<T>
- All Known Implementing Classes:
AbstractPersistentEntityCriteriaQuery
,AbstractPersistentEntityQuery
,AbstractPersistentEntitySubquery
public interface PersistentEntityQuery<T>
extends jakarta.persistence.criteria.AbstractQuery<T>, PersistentEntityCommonAbstractCriteria
The common persistent entity query. (ordinary + subquery)
- Since:
- 4.10
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescription<X> @NonNull PersistentEntityRoot<X>
from
(@NonNull PersistentEntity persistentEntity) Create a root usingPersistentEntity
.@NonNull PersistentEntityQuery<T>
limit
(int limit) Sets the limit to the query.@NonNull PersistentEntityQuery<T>
offset
(int offset) Sets the offset to the query.@NonNull PersistentEntityQuery<T>
orderBy
(@NonNull jakarta.persistence.criteria.Order... orders) Ordering of the query.@NonNull PersistentEntityQuery<T>
Ordering of the query.Methods inherited from interface jakarta.persistence.criteria.AbstractQuery
distinct, from, from, getGroupList, getGroupRestriction, getResultType, getRoots, getSelection, groupBy, groupBy, having, having, isDistinct, where, where
Methods inherited from interface jakarta.persistence.criteria.CommonAbstractCriteria
getRestriction
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) Create a root usingPersistentEntity
.- Type Parameters:
X
- The root type- Parameters:
persistentEntity
- The persistent entity- Returns:
- The root
-
limit
Sets the limit to the query.- Parameters:
limit
- The limit- Returns:
- The query
-
offset
Sets the offset to the query.- Parameters:
offset
- The offset- Returns:
- The query
-
orderBy
@NonNull @NonNull PersistentEntityQuery<T> orderBy(@NonNull @NonNull jakarta.persistence.criteria.Order... orders) Ordering of the query.- Parameters:
orders
- The order- Returns:
- The query
-
orderBy
@NonNull @NonNull PersistentEntityQuery<T> orderBy(@NonNull @NonNull List<jakarta.persistence.criteria.Order> orders) Ordering of the query.- Parameters:
orders
- The order- Returns:
- The query
-