T - The entity root typepublic interface UpdateSpecification<T>
| Modifier and Type | Method and Description |
|---|---|
jakarta.persistence.criteria.Predicate |
toPredicate(jakarta.persistence.criteria.Root<T> root,
jakarta.persistence.criteria.CriteriaUpdate<?> query,
jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder)
Creates a WHERE clause predicate for the given entity
Root and a criteria query. |
default UpdateSpecification<T> |
where(PredicateSpecification<T> spec)
Simple static factory method to add some syntactic sugar around a
UpdateSpecification. |
@NonNull default UpdateSpecification<T> where(@Nullable PredicateSpecification<T> spec)
UpdateSpecification.spec - The predicate specification.@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)
Root and a criteria query.root - The entity rootquery - The criteria querycriteriaBuilder - The criteria builderPredicate