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, isDistinct
Methods inherited from interface jakarta.persistence.criteria.CommonAbstractCriteria
getRestriction
Methods inherited from interface jakarta.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
Methods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityCommonAbstractCriteria
subquery, subquery
Methods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityQuery
from, orderBy, orderBy
Methods inherited from interface jakarta.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelection
Methods inherited from interface jakarta.persistence.criteria.Subquery
correlate, correlate, correlate, correlate, correlate, correlate, getContainingQuery, getCorrelatedJoins, getParent, getSelection
Methods inherited from interface jakarta.persistence.TupleElement
getAlias, getJavaType
-
Method Details
-
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
-
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>
-
select
PersistentEntitySubquery<T> select(@NonNull @NonNull jakarta.persistence.criteria.Expression<T> expression) - Specified by:
select
in 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
-