Interface PersistentEntityCriteriaQuery<T>

Type Parameters:
T - The entity type
All Superinterfaces:
jakarta.persistence.criteria.AbstractQuery<T>, jakarta.persistence.criteria.CommonAbstractCriteria, jakarta.persistence.criteria.CriteriaQuery<T>
All Known Subinterfaces:
SourcePersistentEntityCriteriaQuery<T>
All Known Implementing Classes:
AbstractPersistentEntityCriteriaQuery

public interface PersistentEntityCriteriaQuery<T> extends jakarta.persistence.criteria.CriteriaQuery<T>
The persistent entity CriteriaQuery.
Since:
3.2
Author:
Denis Stepanov
  • Method Details

    • from

      @NonNull <X> @NonNull PersistentEntityRoot<X> from(@NonNull @NonNull PersistentEntity persistentEntity)
    • 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>
    • max

      @NonNull @NonNull PersistentEntityCriteriaQuery<T> max(int max)
    • offset

      @NonNull @NonNull PersistentEntityCriteriaQuery<T> offset(int offset)
    • forUpdate

      @Internal @NonNull default @NonNull PersistentEntityCriteriaQuery<T> forUpdate(boolean forUpdate)
    • select

      @NonNull @NonNull PersistentEntityCriteriaQuery<T> select(@NonNull @NonNull jakarta.persistence.criteria.Selection<? extends T> selection)
      Specified by:
      select in interface jakarta.persistence.criteria.CriteriaQuery<T>
    • multiselect

      @NonNull @NonNull PersistentEntityCriteriaQuery<T> multiselect(@NonNull @NonNull jakarta.persistence.criteria.Selection<?>... selections)
      Specified by:
      multiselect in interface jakarta.persistence.criteria.CriteriaQuery<T>
    • multiselect

      @NonNull @NonNull PersistentEntityCriteriaQuery<T> multiselect(@NonNull @NonNull List<jakarta.persistence.criteria.Selection<?>> selectionList)
      Specified by:
      multiselect in interface jakarta.persistence.criteria.CriteriaQuery<T>
    • where

      @NonNull @NonNull PersistentEntityCriteriaQuery<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.CriteriaQuery<T>
    • where

      @NonNull @NonNull PersistentEntityCriteriaQuery<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.CriteriaQuery<T>
    • groupBy

      @NonNull @NonNull PersistentEntityCriteriaQuery<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.CriteriaQuery<T>
    • groupBy

      @NonNull @NonNull PersistentEntityCriteriaQuery<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.CriteriaQuery<T>
    • having

      @NonNull @NonNull PersistentEntityCriteriaQuery<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.CriteriaQuery<T>
    • having

      @NonNull @NonNull PersistentEntityCriteriaQuery<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.CriteriaQuery<T>
    • orderBy

      @NonNull @NonNull PersistentEntityCriteriaQuery<T> orderBy(@NonNull @NonNull jakarta.persistence.criteria.Order... o)
      Specified by:
      orderBy in interface jakarta.persistence.criteria.CriteriaQuery<T>
    • orderBy

      @NonNull @NonNull PersistentEntityCriteriaQuery<T> orderBy(@NonNull @NonNull List<jakarta.persistence.criteria.Order> o)
      Specified by:
      orderBy in interface jakarta.persistence.criteria.CriteriaQuery<T>
    • distinct

      @NonNull @NonNull PersistentEntityCriteriaQuery<T> distinct(boolean distinct)
      Specified by:
      distinct in interface jakarta.persistence.criteria.AbstractQuery<T>
      Specified by:
      distinct in interface jakarta.persistence.criteria.CriteriaQuery<T>