T
- The entity root typepublic interface DeleteSpecification<T>
Modifier and Type | Field and Description |
---|---|
static DeleteSpecification<?> |
ALL
Include all specification.
|
Modifier and Type | Method and Description |
---|---|
default DeleteSpecification<T> |
and(DeleteSpecification<T> other)
ANDs the given
QuerySpecification to the current one. |
default DeleteSpecification<T> |
and(PredicateSpecification<T> other)
ANDs the given
PredicateSpecification to the current one. |
static <T> DeleteSpecification<T> |
not(DeleteSpecification<T> spec)
Negates the given
DeleteSpecification . |
default DeleteSpecification<T> |
or(DeleteSpecification<T> other)
ORs the given specification to the current one.
|
default DeleteSpecification<T> |
or(PredicateSpecification<T> other)
ORs the given
PredicateSpecification to the current one. |
jakarta.persistence.criteria.Predicate |
toPredicate(jakarta.persistence.criteria.Root<T> root,
jakarta.persistence.criteria.CriteriaDelete<?> query,
jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder)
Creates a WHERE clause predicate for the given entity
Root and a criteria query. |
static <T> DeleteSpecification<T> |
where(DeleteSpecification<T> spec)
Simple static factory method to add some syntactic sugar around a
DeleteSpecification . |
static <T> DeleteSpecification<T> |
where(PredicateSpecification<T> spec)
Simple static factory method to add some syntactic sugar around a
PredicateSpecification . |
static final DeleteSpecification<?> ALL
@NonNull static <T> DeleteSpecification<T> not(@Nullable DeleteSpecification<T> spec)
DeleteSpecification
.T
- the type of the Root
the resulting Specification operates on.spec
- The specification.@NonNull static <T> DeleteSpecification<T> where(@Nullable DeleteSpecification<T> spec)
DeleteSpecification
.T
- the type of the Root
the resulting Specification operates on.spec
- The specification.@NonNull static <T> DeleteSpecification<T> where(@Nullable PredicateSpecification<T> spec)
PredicateSpecification
.T
- the type of the Root
the resulting Specification operates on.spec
- The specification.@NonNull default DeleteSpecification<T> and(@Nullable DeleteSpecification<T> other)
QuerySpecification
to the current one.other
- The other predicate.@NonNull default DeleteSpecification<T> or(@Nullable DeleteSpecification<T> other)
other
- The other predicate.@NonNull default DeleteSpecification<T> and(@Nullable PredicateSpecification<T> other)
PredicateSpecification
to the current one.other
- The other predicate.@NonNull default DeleteSpecification<T> or(@Nullable PredicateSpecification<T> other)
PredicateSpecification
to the current one.other
- The other predicate.@Nullable jakarta.persistence.criteria.Predicate toPredicate(@NonNull jakarta.persistence.criteria.Root<T> root, @NonNull jakarta.persistence.criteria.CriteriaDelete<?> query, @NonNull jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder)
Root
and a criteria query.root
- The entity rootquery
- The criteria querycriteriaBuilder
- The criteria builderPredicate