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>,jakarta.persistence.criteria.CriteriaSelect<T>,PersistentEntityCommonAbstractCriteria,PersistentEntityCriteriaQueryBuilder,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 TypeMethodDescriptiondistinct(boolean distinct) default PersistentEntityCriteriaQuery<T> forUpdate(boolean forUpdate) <X> PersistentEntityRoot<X> from(PersistentEntity persistentEntity) Create a root usingPersistentEntity.<X> PersistentEntityRoot<X> from(jakarta.persistence.metamodel.EntityType<X> entity) <X> PersistentEntityRoot<X> groupBy(jakarta.persistence.criteria.Expression<?>... grouping) having(jakarta.persistence.criteria.Predicate... restrictions) limit(int limit) Sets the limit to the query.multiselect(jakarta.persistence.criteria.Selection<?>... selections) multiselect(List<jakarta.persistence.criteria.Selection<?>> selectionList) offset(int offset) Sets the offset to the query.orderBy(jakarta.persistence.criteria.Order... orders) Ordering of the query.Ordering of the query.where(jakarta.persistence.criteria.Predicate... restrictions) Methods inherited from interface jakarta.persistence.criteria.AbstractQuery
getGroupList, getGroupRestriction, getResultType, getRoots, getSelection, isDistinctMethods inherited from interface jakarta.persistence.criteria.CommonAbstractCriteria
getParameters, getRestriction, subqueryMethods inherited from interface jakarta.persistence.criteria.CriteriaQuery
getOrderList, having, whereMethods 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
Description copied from interface:PersistentEntityQueryCreate a root usingPersistentEntity.- Specified by:
fromin interfacePersistentEntityQuery<T>- Type Parameters:
X- The root type- Parameters:
persistentEntity- The persistent entity- Returns:
- The root
-
from
- Specified by:
fromin interfacejakarta.persistence.criteria.AbstractQuery<T>
-
from
- Specified by:
fromin interfacejakarta.persistence.criteria.AbstractQuery<T>
-
limit
Description copied from interface:PersistentEntityQuerySets the limit to the query.- Specified by:
limitin interfacePersistentEntityQuery<T>- Parameters:
limit- The limit- Returns:
- The query
-
offset
Description copied from interface:PersistentEntityQuerySets the offset to the query.- Specified by:
offsetin interfacePersistentEntityQuery<T>- Parameters:
offset- The offset- Returns:
- The query
-
forUpdate
-
select
PersistentEntityCriteriaQuery<T> select(jakarta.persistence.criteria.Selection<? extends T> selection) - Specified by:
selectin interfacejakarta.persistence.criteria.CriteriaQuery<T>
-
multiselect
PersistentEntityCriteriaQuery<T> multiselect(jakarta.persistence.criteria.Selection<?>... selections) - Specified by:
multiselectin interfacejakarta.persistence.criteria.CriteriaQuery<T>
-
multiselect
PersistentEntityCriteriaQuery<T> multiselect(List<jakarta.persistence.criteria.Selection<?>> selectionList) - Specified by:
multiselectin interfacejakarta.persistence.criteria.CriteriaQuery<T>
-
where
PersistentEntityCriteriaQuery<T> where(jakarta.persistence.criteria.Expression<Boolean> restriction) -
where
-
groupBy
-
groupBy
-
having
PersistentEntityCriteriaQuery<T> having(jakarta.persistence.criteria.Expression<Boolean> restriction) -
having
-
orderBy
Description copied from interface:PersistentEntityQueryOrdering of the query.- Specified by:
orderByin interfacejakarta.persistence.criteria.CriteriaQuery<T>- Specified by:
orderByin interfacePersistentEntityQuery<T>- Parameters:
orders- The order- Returns:
- The query
-
orderBy
Description copied from interface:PersistentEntityQueryOrdering of the query.- Specified by:
orderByin interfacejakarta.persistence.criteria.CriteriaQuery<T>- Specified by:
orderByin interfacePersistentEntityQuery<T>- Parameters:
orders- The order- Returns:
- The query
-
distinct
-