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
  • Constructor Details

    • AbstractPersistentEntitySubquery

      protected AbstractPersistentEntitySubquery(jakarta.persistence.criteria.AbstractQuery<?> parentQuery, ExpressionType<T> resultType, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder)
  • Method Details

    • orderBy

      public PersistentEntitySubquery<T> orderBy(jakarta.persistence.criteria.Order... orders)
      Description copied from interface: PersistentEntityQuery
      Ordering of the query.
      Specified by:
      orderBy in interface PersistentEntityQuery<T>
      Parameters:
      orders - The order
      Returns:
      The query
    • orderBy

      public PersistentEntitySubquery<T> orderBy(List<jakarta.persistence.criteria.Order> orders)
      Description copied from interface: PersistentEntityQuery
      Ordering of the query.
      Specified by:
      orderBy in interface PersistentEntityQuery<T>
      Parameters:
      orders - The order
      Returns:
      The query
    • getParent

      public jakarta.persistence.criteria.AbstractQuery<?> getParent()
      Specified by:
      getParent in interface jakarta.persistence.criteria.Subquery<T>
    • self

      protected PersistentEntitySubquery<T> self()
      Specified by:
      self in class AbstractPersistentEntityQuery<T,PersistentEntitySubquery<T>>
      Returns:
      The self instance
    • getSelection

      public IExpression<T> getSelection()
      Specified by:
      getSelection in interface jakarta.persistence.criteria.AbstractQuery<T>
      Specified by:
      getSelection in interface jakarta.persistence.criteria.Subquery<T>
      Overrides:
      getSelection in class AbstractPersistentEntityQuery<T,PersistentEntitySubquery<T>>
    • getExpressionType

      public ExpressionType<T> getExpressionType()
      Specified by:
      getExpressionType in interface IExpression<T>
      Specified by:
      getExpressionType in interface PersistentEntitySubquery<T>
      Returns:
      The expression type
    • visitExpression

      public void visitExpression(ExpressionVisitor expressionVisitor)
      Description copied from interface: IExpression
      Visit the expression.
      Specified by:
      visitExpression in interface IExpression<T>
      Parameters:
      expressionVisitor - The expression visitor
    • select

      public PersistentEntitySubquery<T> select(jakarta.persistence.criteria.Expression<T> expression)
      Specified by:
      select in interface PersistentEntitySubquery<T>
      Specified by:
      select in interface jakarta.persistence.criteria.Subquery<T>
    • getCorrelatedJoins

      public Set<jakarta.persistence.criteria.Join<?,?>> getCorrelatedJoins()
      Specified by:
      getCorrelatedJoins in interface jakarta.persistence.criteria.Subquery<T>
    • getContainingQuery

      public jakarta.persistence.criteria.CommonAbstractCriteria getContainingQuery()
      Specified by:
      getContainingQuery in interface jakarta.persistence.criteria.Subquery<T>
    • correlate

      public <X, K, V> jakarta.persistence.criteria.MapJoin<X,K,V> correlate(jakarta.persistence.criteria.MapJoin<X,K,V> parentMap)
      Specified by:
      correlate in interface jakarta.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 interface jakarta.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 interface jakarta.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 interface jakarta.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 interface jakarta.persistence.criteria.Subquery<T>
    • correlate

      public <Y> jakarta.persistence.criteria.Root<Y> correlate(jakarta.persistence.criteria.Root<Y> parentRoot)
      Specified by:
      correlate in interface jakarta.persistence.criteria.Subquery<T>