Class AbstractPersistentEntitySubquery<T>
java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.AbstractPersistentEntityQuery<T,PersistentEntitySubquery<T>>
io.micronaut.data.model.jpa.criteria.impl.AbstractPersistentEntitySubquery<T>
- Type Parameters:
T
- The entity type
- All Implemented Interfaces:
IExpression<T>
,QueryResultPersistentEntityCriteriaQuery
,ISelection<T>
,PersistentEntityCommonAbstractCriteria
,PersistentEntityQuery<T>
,PersistentEntitySubquery<T>
,jakarta.persistence.criteria.AbstractQuery<T>
,jakarta.persistence.criteria.CommonAbstractCriteria
,jakarta.persistence.criteria.Expression<T>
,jakarta.persistence.criteria.Selection<T>
,jakarta.persistence.criteria.Subquery<T>
,jakarta.persistence.TupleElement<T>
@Internal
public abstract class AbstractPersistentEntitySubquery<T>
extends AbstractPersistentEntityQuery<T,PersistentEntitySubquery<T>>
implements PersistentEntitySubquery<T>, IExpression<T>
The abstract implementation of
PersistentEntityCriteriaQuery
.- Since:
- 4.10
- Author:
- Denis Stepanov
-
Field Summary
Fields inherited from class io.micronaut.data.model.jpa.criteria.impl.AbstractPersistentEntityQuery
criteriaBuilder, distinct, entityRoot, forUpdate, max, offset, orders, parametersInRole, predicate, resultType, selection
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractPersistentEntitySubquery
(jakarta.persistence.criteria.AbstractQuery<?> parentQuery, ExpressionType<T> resultType, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder) -
Method Summary
Modifier and TypeMethodDescription<X,
Y> jakarta.persistence.criteria.CollectionJoin<X, Y> correlate
(jakarta.persistence.criteria.CollectionJoin<X, Y> parentCollection) <X,
Y> jakarta.persistence.criteria.Join<X, Y> correlate
(jakarta.persistence.criteria.Join<X, Y> parentJoin) <X,
Y> jakarta.persistence.criteria.ListJoin<X, Y> correlate
(jakarta.persistence.criteria.ListJoin<X, Y> parentList) <X,
K, V> jakarta.persistence.criteria.MapJoin<X, K, V> correlate
(jakarta.persistence.criteria.MapJoin<X, K, V> parentMap) <Y> jakarta.persistence.criteria.Root<Y>
correlate
(jakarta.persistence.criteria.Root<Y> parentRoot) <X,
Y> jakarta.persistence.criteria.SetJoin<X, Y> correlate
(jakarta.persistence.criteria.SetJoin<X, Y> parentSet) jakarta.persistence.criteria.CommonAbstractCriteria
Set<jakarta.persistence.criteria.Join<?,
?>> jakarta.persistence.criteria.AbstractQuery<?>
orderBy
(jakarta.persistence.criteria.Order... orders) Ordering of the query.Ordering of the query.protected PersistentEntitySubquery<T>
self()
void
visitExpression
(ExpressionVisitor expressionVisitor) Visit the expression.Methods inherited from class io.micronaut.data.model.jpa.criteria.impl.AbstractPersistentEntityQuery
buildQuery, distinct, forUpdate, from, from, from, getGroupList, getGroupRestriction, getParametersInRole, getRestriction, getResultType, getRoots, groupBy, groupBy, hasOnlyIdRestriction, hasVersionRestriction, having, having, isDistinct, limit, offset, toSelectQueryDefinition, where, where
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 io.micronaut.data.model.jpa.criteria.IExpression
as, getJavaType, in, in, in, in, isNotNull, isNull, visitSelection
Methods inherited from interface io.micronaut.data.model.jpa.criteria.ISelection
alias, getAlias, getCompoundSelectionItems, isCompoundSelection
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
Methods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntitySubquery
distinct, from, from, groupBy, groupBy, having, having, limit, offset, where, where
Methods inherited from interface io.micronaut.data.model.jpa.criteria.impl.QueryResultPersistentEntityCriteriaQuery
buildQuery
-
Constructor Details
-
AbstractPersistentEntitySubquery
protected AbstractPersistentEntitySubquery(jakarta.persistence.criteria.AbstractQuery<?> parentQuery, ExpressionType<T> resultType, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder)
-
-
Method Details
-
orderBy
Description copied from interface:PersistentEntityQuery
Ordering of the query.- Specified by:
orderBy
in interfacePersistentEntityQuery<T>
- Parameters:
orders
- The order- Returns:
- The query
-
orderBy
Description copied from interface:PersistentEntityQuery
Ordering of the query.- Specified by:
orderBy
in interfacePersistentEntityQuery<T>
- Parameters:
orders
- The order- Returns:
- The query
-
getParent
public jakarta.persistence.criteria.AbstractQuery<?> getParent()- Specified by:
getParent
in interfacejakarta.persistence.criteria.Subquery<T>
-
self
- Specified by:
self
in classAbstractPersistentEntityQuery<T,
PersistentEntitySubquery<T>> - Returns:
- The self instance
-
getSelection
- Specified by:
getSelection
in interfacejakarta.persistence.criteria.AbstractQuery<T>
- Specified by:
getSelection
in interfacejakarta.persistence.criteria.Subquery<T>
- Overrides:
getSelection
in classAbstractPersistentEntityQuery<T,
PersistentEntitySubquery<T>>
-
getExpressionType
- Specified by:
getExpressionType
in interfaceIExpression<T>
- Specified by:
getExpressionType
in interfacePersistentEntitySubquery<T>
- Returns:
- The expression type
-
visitExpression
Description copied from interface:IExpression
Visit the expression.- Specified by:
visitExpression
in interfaceIExpression<T>
- Parameters:
expressionVisitor
- The expression visitor
-
select
- Specified by:
select
in interfacePersistentEntitySubquery<T>
- Specified by:
select
in interfacejakarta.persistence.criteria.Subquery<T>
-
getContainingQuery
public jakarta.persistence.criteria.CommonAbstractCriteria getContainingQuery()- Specified by:
getContainingQuery
in interfacejakarta.persistence.criteria.Subquery<T>
-
correlate
public <X,K, jakarta.persistence.criteria.MapJoin<X,V> K, correlateV> (jakarta.persistence.criteria.MapJoin<X, K, V> parentMap) - Specified by:
correlate
in interfacejakarta.persistence.criteria.Subquery<T>
-
correlate
public <X,Y> jakarta.persistence.criteria.ListJoin<X,Y> correlate(jakarta.persistence.criteria.ListJoin<X, Y> parentList) - Specified by:
correlate
in interfacejakarta.persistence.criteria.Subquery<T>
-
correlate
public <X,Y> jakarta.persistence.criteria.SetJoin<X,Y> correlate(jakarta.persistence.criteria.SetJoin<X, Y> parentSet) - Specified by:
correlate
in interfacejakarta.persistence.criteria.Subquery<T>
-
correlate
public <X,Y> jakarta.persistence.criteria.CollectionJoin<X,Y> correlate(jakarta.persistence.criteria.CollectionJoin<X, Y> parentCollection) - Specified by:
correlate
in interfacejakarta.persistence.criteria.Subquery<T>
-
correlate
public <X,Y> jakarta.persistence.criteria.Join<X,Y> correlate(jakarta.persistence.criteria.Join<X, Y> parentJoin) - Specified by:
correlate
in interfacejakarta.persistence.criteria.Subquery<T>
-
correlate
public <Y> jakarta.persistence.criteria.Root<Y> correlate(jakarta.persistence.criteria.Root<Y> parentRoot) - Specified by:
correlate
in interfacejakarta.persistence.criteria.Subquery<T>
-