Interface CriteriaStatement<T>

Type Parameters:
T - The affected entity type
All Superinterfaces:
CommonAbstractCriteria
All Known Subinterfaces:
CriteriaDelete<T>, CriteriaUpdate<T>

public interface CriteriaStatement<T> extends CommonAbstractCriteria
Declares operations common to CriteriaUpdate and CriteriaDelete. A CriteriaStatement represents a bulk operation affecting a certain entity type.
Since:
4.0
See Also:
  • Method Details

    • from

      @Nonnull Root<T> from(@Nonnull Class<T> entityClass)
      Create and add a statement root corresponding to the entity that is affected by the statement. A statement has a single root, the entity that is affected.
      Parameters:
      entityClass - the entity class
      Returns:
      query root corresponding to the given entity
    • from

      @Nonnull Root<T> from(@Nonnull EntityType<T> entity)
      Create and add a statement root corresponding to the entity that is affected by the statement. A statement has a single root, the entity that is affected.
      Parameters:
      entity - metamodel object representing the entity
      Returns:
      query root corresponding to the given entity
    • getRoot

      @Nullable Root<T> getRoot()
      Return the statement root.
      Returns:
      the statement root