Interface UpdateSpecification<T>

Type Parameters:
T - The entity root type

public interface UpdateSpecification<T>
Criteria update specification.
Since:
3.2
Author:
Denis Stepanov
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable jakarta.persistence.criteria.Predicate
    toPredicate(@NonNull jakarta.persistence.criteria.Root<T> root, @NonNull jakarta.persistence.criteria.CriteriaUpdate<?> query, @NonNull jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder)
    Creates a WHERE clause predicate for the given entity Root and a criteria query.
    default @NonNull UpdateSpecification<T>
    where(@Nullable PredicateSpecification<T> spec)
    Simple static factory method to add some syntactic sugar around a UpdateSpecification.
  • Method Details

    • where

      @NonNull default @NonNull UpdateSpecification<T> where(@Nullable @Nullable PredicateSpecification<T> spec)
      Simple static factory method to add some syntactic sugar around a UpdateSpecification.
      Parameters:
      spec - The predicate specification.
      Returns:
      query specification.
    • toPredicate

      @Nullable @Nullable jakarta.persistence.criteria.Predicate toPredicate(@NonNull @NonNull jakarta.persistence.criteria.Root<T> root, @NonNull @NonNull jakarta.persistence.criteria.CriteriaUpdate<?> query, @NonNull @NonNull jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder)
      Creates a WHERE clause predicate for the given entity Root and a criteria query.
      Parameters:
      root - The entity root
      query - The criteria query
      criteriaBuilder - The criteria builder
      Returns:
      a Predicate