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 Details

    • limit

      PersistentEntitySubquery<T> limit(int limit)
      Description copied from interface: PersistentEntityQuery
      Sets the limit to the query.
      Specified by:
      limit in interface PersistentEntityQuery<T>
      Parameters:
      limit - The limit
      Returns:
      The query
    • offset

      PersistentEntitySubquery<T> offset(int offset)
      Description copied from interface: PersistentEntityQuery
      Sets the offset to the query.
      Specified by:
      offset in interface PersistentEntityQuery<T>
      Parameters:
      offset - The offset
      Returns:
      The query
    • from

      <X> PersistentEntityRoot<X> from(Class<X> entityClass)
      Specified by:
      from in interface jakarta.persistence.criteria.AbstractQuery<T>
    • from

      <X> PersistentEntityRoot<X> from(jakarta.persistence.metamodel.EntityType<X> entity)
      Specified by:
      from in interface jakarta.persistence.criteria.AbstractQuery<T>
    • select

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

      PersistentEntitySubquery<T> where(jakarta.persistence.criteria.Expression<Boolean> restriction)
      Specified by:
      where in interface jakarta.persistence.criteria.AbstractQuery<T>
      Specified by:
      where in interface jakarta.persistence.criteria.Subquery<T>
    • where

      PersistentEntitySubquery<T> where(jakarta.persistence.criteria.Predicate... restrictions)
      Specified by:
      where in interface jakarta.persistence.criteria.AbstractQuery<T>
      Specified by:
      where in interface jakarta.persistence.criteria.Subquery<T>
    • groupBy

      PersistentEntitySubquery<T> groupBy(jakarta.persistence.criteria.Expression<?>... grouping)
      Specified by:
      groupBy in interface jakarta.persistence.criteria.AbstractQuery<T>
      Specified by:
      groupBy in interface jakarta.persistence.criteria.Subquery<T>
    • groupBy

      PersistentEntitySubquery<T> groupBy(List<jakarta.persistence.criteria.Expression<?>> grouping)
      Specified by:
      groupBy in interface jakarta.persistence.criteria.AbstractQuery<T>
      Specified by:
      groupBy in interface jakarta.persistence.criteria.Subquery<T>
    • having

      PersistentEntitySubquery<T> having(jakarta.persistence.criteria.Expression<Boolean> restriction)
      Specified by:
      having in interface jakarta.persistence.criteria.AbstractQuery<T>
      Specified by:
      having in interface jakarta.persistence.criteria.Subquery<T>
    • having

      PersistentEntitySubquery<T> having(jakarta.persistence.criteria.Predicate... restrictions)
      Specified by:
      having in interface jakarta.persistence.criteria.AbstractQuery<T>
      Specified by:
      having in interface jakarta.persistence.criteria.Subquery<T>
    • distinct

      PersistentEntitySubquery<T> distinct(boolean distinct)
      Specified by:
      distinct in interface jakarta.persistence.criteria.AbstractQuery<T>
      Specified by:
      distinct in interface jakarta.persistence.criteria.Subquery<T>
    • getExpressionType

      ExpressionType<T> getExpressionType()
      Returns:
      The expression type