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 TypeMethodDescription@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 entityRoot
and a criteria query.default @NonNull UpdateSpecification<T>
where
(@Nullable PredicateSpecification<T> spec) Simple static factory method to add some syntactic sugar around aUpdateSpecification
.
-
Method Details
-
where
@NonNull default @NonNull UpdateSpecification<T> where(@Nullable @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 @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 entityRoot
and a criteria query.- Parameters:
root
- The entity rootquery
- The criteria querycriteriaBuilder
- The criteria builder- Returns:
- a
Predicate
-