Interface PersistentEntityQuery<T>
- Type Parameters:
T- The type of the result
- All Superinterfaces:
jakarta.persistence.criteria.AbstractQuery<T>,jakarta.persistence.criteria.CommonAbstractCriteria,PersistentEntityCommonAbstractCriteria,PersistentEntityCriteriaQueryBuilder
- 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> PersistentEntityRoot<X> from(PersistentEntity persistentEntity) Create a root usingPersistentEntity.limit(int limit) Sets the limit to the query.offset(int offset) Sets the offset to the query.orderBy(jakarta.persistence.criteria.Order... orders) Ordering of the query.Ordering of the query.Methods inherited from interface jakarta.persistence.criteria.AbstractQuery
distinct, from, from, getGroupList, getGroupRestriction, getResultType, getRoots, getSelection, groupBy, groupBy, having, having, having, isDistinct, where, where, whereMethods inherited from interface jakarta.persistence.criteria.CommonAbstractCriteria
getParameters, getRestriction, subqueryMethods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityCommonAbstractCriteria
getPersistentEntity, subquery, subqueryMethods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityCriteriaQueryBuilder
build, build
-
Method Details
-
from
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
Ordering of the query.- Parameters:
orders- The order- Returns:
- The query
-
orderBy
Ordering of the query.- Parameters:
orders- The order- Returns:
- The query
-