Specification instead.@Deprecated public class Specifications<T> extends Object implements Specification<T>, Serializable
Specification instances.| Modifier and Type | Method and Description |
|---|---|
Specifications<T> |
and(Specification<T> other)
Deprecated.
since 2.0, use
Specification.and(org.springframework.data.jpa.domain.Specification<T>) instead |
static <T> Specifications<T> |
not(Specification<T> spec)
Deprecated.
since 2.0, use
Specification.not(org.springframework.data.jpa.domain.Specification<T>) instead |
Specifications<T> |
or(Specification<T> other)
Deprecated.
since 2.0, use
Specification.or(org.springframework.data.jpa.domain.Specification<T>) instead |
javax.persistence.criteria.Predicate |
toPredicate(javax.persistence.criteria.Root<T> root,
javax.persistence.criteria.CriteriaQuery<?> query,
javax.persistence.criteria.CriteriaBuilder builder)
Deprecated.
Creates a WHERE clause for a query of the referenced entity in form of a
Predicate for the given
Root and CriteriaQuery. |
static <T> Specifications<T> |
where(Specification<T> spec)
Deprecated.
since 2.0, use
Specification.where(org.springframework.data.jpa.domain.Specification<T>) instead |
@Deprecated public static <T> Specifications<T> where(@Nullable Specification<T> spec)
Specification.where(org.springframework.data.jpa.domain.Specification<T>) insteadSpecification.where in interface Specification<T>T - type parameter for the specification parameter.spec - can be null.null.@Deprecated public Specifications<T> and(@Nullable Specification<T> other)
Specification.and(org.springframework.data.jpa.domain.Specification<T>) insteadSpecification to the current one.and in interface Specification<T>other - can be null.null.@Deprecated public Specifications<T> or(@Nullable Specification<T> other)
Specification.or(org.springframework.data.jpa.domain.Specification<T>) insteador in interface Specification<T>other - can be null.null.@Deprecated public static <T> Specifications<T> not(@Nullable Specification<T> spec)
Specification.not(org.springframework.data.jpa.domain.Specification<T>) insteadSpecification.not in interface Specification<T>T - type parameter for the specification parameter.spec - can be null.null.@Nullable public javax.persistence.criteria.Predicate toPredicate(javax.persistence.criteria.Root<T> root, javax.persistence.criteria.CriteriaQuery<?> query, javax.persistence.criteria.CriteriaBuilder builder)
SpecificationPredicate for the given
Root and CriteriaQuery.toPredicate in interface Specification<T>root - must not be null.query - must not be null.builder - must not be null.Predicate, may be null.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.