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 Details

    • limit

      @NonNull @NonNull 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

      @NonNull @NonNull 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

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

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

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

      @NonNull @NonNull PersistentEntitySubquery<T> where(@NonNull @NonNull 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

      @NonNull @NonNull PersistentEntitySubquery<T> where(@NonNull @NonNull 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

      @NonNull @NonNull PersistentEntitySubquery<T> groupBy(@NonNull @NonNull 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

      @NonNull @NonNull PersistentEntitySubquery<T> groupBy(@NonNull @NonNull 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

      @NonNull @NonNull PersistentEntitySubquery<T> having(@NonNull @NonNull 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

      @NonNull @NonNull PersistentEntitySubquery<T> having(@NonNull @NonNull 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

      @NonNull @NonNull 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