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,PersistentEntityCriteriaQueryBuilder,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 TypeMethodDescriptiondistinct(boolean distinct) <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.offset(int offset) Sets the offset to the query.where(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
getParameters, getRestriction, subqueryMethods inherited from interface jakarta.persistence.criteria.Expression
as, cast, equalTo, equalTo, in, in, in, in, isNotNull, isNull, notEqualTo, notEqualToMethods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityCommonAbstractCriteria
getPersistentEntity, subquery, subqueryMethods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityCriteriaQueryBuilder
build, buildMethods 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, getSelection, having, whereMethods 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
- Specified by:
fromin interfacejakarta.persistence.criteria.AbstractQuery<T>
-
select
- Specified by:
selectin interfacejakarta.persistence.criteria.Subquery<T>
-
where
-
where
-
groupBy
-
groupBy
-
having
-
having
-
distinct
-
getExpressionType
ExpressionType<T> getExpressionType()- Returns:
- The expression type
-