Interface PersistentEntityQuery<T>

Type Parameters:
T - The type of the result
All Superinterfaces:
jakarta.persistence.criteria.AbstractQuery<T>, jakarta.persistence.criteria.CommonAbstractCriteria, PersistentEntityCommonAbstractCriteria
All Known Subinterfaces:
PersistentEntityCriteriaQuery<T>, PersistentEntitySubquery<T>, SourcePersistentEntityCriteriaQuery<T>, SourcePersistentEntitySubquery<T>
All Known Implementing Classes:
AbstractPersistentEntityCriteriaQuery, AbstractPersistentEntityQuery, AbstractPersistentEntitySubquery

public interface PersistentEntityQuery<T> extends jakarta.persistence.criteria.AbstractQuery<T>, PersistentEntityCommonAbstractCriteria
The common persistent entity query. (ordinary + subquery)
Since:
4.10
Author:
Denis Stepanov
  • Method Details

    • from

      @NonNull <X> @NonNull PersistentEntityRoot<X> from(@NonNull @NonNull PersistentEntity persistentEntity)
      Create a root using PersistentEntity.
      Type Parameters:
      X - The root type
      Parameters:
      persistentEntity - The persistent entity
      Returns:
      The root
    • limit

      @NonNull @NonNull PersistentEntityQuery<T> limit(int limit)
      Sets the limit to the query.
      Parameters:
      limit - The limit
      Returns:
      The query
    • offset

      @NonNull @NonNull PersistentEntityQuery<T> offset(int offset)
      Sets the offset to the query.
      Parameters:
      offset - The offset
      Returns:
      The query
    • orderBy

      @NonNull @NonNull PersistentEntityQuery<T> orderBy(@NonNull @NonNull jakarta.persistence.criteria.Order... orders)
      Ordering of the query.
      Parameters:
      orders - The order
      Returns:
      The query
    • orderBy

      @NonNull @NonNull PersistentEntityQuery<T> orderBy(@NonNull @NonNull List<jakarta.persistence.criteria.Order> orders)
      Ordering of the query.
      Parameters:
      orders - The order
      Returns:
      The query