Interface PersistentEntitySubquery<T>
- Type Parameters:
T- The type of the selected item
- All Superinterfaces:
jakarta.persistence.criteria.AbstractQuery<T>,jakarta.persistence.criteria.CommonAbstractCriteria,jakarta.persistence.criteria.Expression<T>,PersistentEntityCommonAbstractCriteria,PersistentEntityQuery<T>,jakarta.persistence.criteria.Selection<T>,jakarta.persistence.criteria.Subquery<T>,jakarta.persistence.TupleElement<T>
- All Known Subinterfaces:
SourcePersistentEntitySubquery<T>
- All Known Implementing Classes:
AbstractPersistentEntitySubquery
public interface PersistentEntitySubquery<T>
extends jakarta.persistence.criteria.Subquery<T>, PersistentEntityQuery<T>
The persistent entity
Subquery.- Since:
- 4.10
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescription@NonNull PersistentEntitySubquery<T>distinct(boolean distinct) <X> @NonNull PersistentEntityRoot<X>from(@NonNull jakarta.persistence.metamodel.EntityType<X> entity) <X> @NonNull PersistentEntityRoot<X>@NonNull PersistentEntitySubquery<T>groupBy(@NonNull jakarta.persistence.criteria.Expression<?>... grouping) @NonNull PersistentEntitySubquery<T>@NonNull PersistentEntitySubquery<T>@NonNull PersistentEntitySubquery<T>having(@NonNull jakarta.persistence.criteria.Predicate... restrictions) @NonNull PersistentEntitySubquery<T>limit(int limit) Sets the limit to the query.@NonNull PersistentEntitySubquery<T>offset(int offset) Sets the offset to the query.@NonNull PersistentEntitySubquery<T>@NonNull PersistentEntitySubquery<T>where(@NonNull jakarta.persistence.criteria.Predicate... restrictions) Methods inherited from interface jakarta.persistence.criteria.AbstractQuery
getGroupList, getGroupRestriction, getResultType, getRoots, isDistinctMethods inherited from interface jakarta.persistence.criteria.CommonAbstractCriteria
getRestrictionMethods inherited from interface jakarta.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNullMethods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityCommonAbstractCriteria
getPersistentEntity, subquery, subqueryMethods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityQuery
from, orderBy, orderByMethods inherited from interface jakarta.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelectionMethods inherited from interface jakarta.persistence.criteria.Subquery
correlate, correlate, correlate, correlate, correlate, correlate, getContainingQuery, getCorrelatedJoins, getParent, getSelectionMethods inherited from interface jakarta.persistence.TupleElement
getAlias, getJavaType
-
Method Details
-
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
-
from
- Specified by:
fromin interfacejakarta.persistence.criteria.AbstractQuery<T>
-
from
@NonNull <X> @NonNull PersistentEntityRoot<X> from(@NonNull @NonNull jakarta.persistence.metamodel.EntityType<X> entity) - Specified by:
fromin interfacejakarta.persistence.criteria.AbstractQuery<T>
-
select
PersistentEntitySubquery<T> select(@NonNull @NonNull jakarta.persistence.criteria.Expression<T> expression) - Specified by:
selectin interfacejakarta.persistence.criteria.Subquery<T>
-
where
@NonNull @NonNull PersistentEntitySubquery<T> where(@NonNull @NonNull jakarta.persistence.criteria.Expression<Boolean> restriction) -
where
@NonNull @NonNull PersistentEntitySubquery<T> where(@NonNull @NonNull jakarta.persistence.criteria.Predicate... restrictions) -
groupBy
@NonNull @NonNull PersistentEntitySubquery<T> groupBy(@NonNull @NonNull jakarta.persistence.criteria.Expression<?>... grouping) -
groupBy
@NonNull @NonNull PersistentEntitySubquery<T> groupBy(@NonNull @NonNull List<jakarta.persistence.criteria.Expression<?>> grouping) -
having
@NonNull @NonNull PersistentEntitySubquery<T> having(@NonNull @NonNull jakarta.persistence.criteria.Expression<Boolean> restriction) -
having
@NonNull @NonNull PersistentEntitySubquery<T> having(@NonNull @NonNull jakarta.persistence.criteria.Predicate... restrictions) -
distinct
-
getExpressionType
ExpressionType<T> getExpressionType()- Returns:
- The expression type
-