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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description jakarta.persistence.criteria.PredicatetoPredicate(jakarta.persistence.criteria.Root<T> root, jakarta.persistence.criteria.CriteriaUpdate<?> query, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder)Creates a WHERE clause predicate for the given entityRootand a criteria query.default UpdateSpecification<T>where(PredicateSpecification<T> spec)Simple static factory method to add some syntactic sugar around aUpdateSpecification.
-
-
-
Method Detail
-
where
@NonNull default UpdateSpecification<T> where(@Nullable PredicateSpecification<T> spec)
Simple static factory method to add some syntactic sugar around aUpdateSpecification.- Parameters:
spec- The predicate specification.- Returns:
- query specification.
-
toPredicate
@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 entityRootand a criteria query.- Parameters:
root- The entity rootquery- The criteria querycriteriaBuilder- The criteria builder- Returns:
- a
Predicate
-
-