public class QueryByExamplePredicateBuilder extends Object
QueryByExamplePredicateBuilder creates a single CriteriaBuilder.and(Predicate...) combined
Predicate for a given Example. SingularAttribute of the Example.getProbe() applying String and
null matching strategies configured on the Example. Ignored paths are no matter of their actual
value not considered. | Constructor and Description |
|---|
QueryByExamplePredicateBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static <T> javax.persistence.criteria.Predicate |
getPredicate(javax.persistence.criteria.Root<T> root,
javax.persistence.criteria.CriteriaBuilder cb,
Example<T> example)
Extract the
Predicate representing the Example. |
static <T> javax.persistence.criteria.Predicate |
getPredicate(javax.persistence.criteria.Root<T> root,
javax.persistence.criteria.CriteriaBuilder cb,
Example<T> example,
EscapeCharacter escapeCharacter)
Extract the
Predicate representing the Example. |
public static <T> javax.persistence.criteria.Predicate getPredicate(javax.persistence.criteria.Root<T> root,
javax.persistence.criteria.CriteriaBuilder cb,
Example<T> example)
Predicate representing the Example.root - must not be null.cb - must not be null.example - must not be null.public static <T> javax.persistence.criteria.Predicate getPredicate(javax.persistence.criteria.Root<T> root,
javax.persistence.criteria.CriteriaBuilder cb,
Example<T> example,
EscapeCharacter escapeCharacter)
Predicate representing the Example.root - must not be null.cb - must not be null.example - must not be null.escapeCharacter - Must not be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.