public class DynamicQueryPredicateBuilder
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> javax.persistence.criteria.Predicate |
getPredicate(javax.persistence.criteria.Root<T> root,
javax.persistence.criteria.CriteriaBuilder cb,
T entity)
Extract the
Predicate representing the Example. |
static <T> javax.persistence.criteria.Predicate |
getPredicate(javax.persistence.criteria.Root<T> root,
javax.persistence.criteria.CriteriaBuilder cb,
T entity,
org.springframework.data.domain.ExampleMatcher matcher)
Extract the
Predicate representing the Example. |
static <T> javax.persistence.criteria.Predicate |
getPredicate(javax.persistence.criteria.Root<T> root,
javax.persistence.criteria.CriteriaBuilder cb,
T entity,
org.springframework.data.domain.ExampleMatcher matcher,
org.springframework.data.jpa.repository.query.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,
T entity)
Predicate representing the Example.T - Troot - must not be null.cb - must not be null.entity - must not be null.public static <T> javax.persistence.criteria.Predicate getPredicate(javax.persistence.criteria.Root<T> root,
javax.persistence.criteria.CriteriaBuilder cb,
T entity,
org.springframework.data.domain.ExampleMatcher matcher)
Predicate representing the Example.T - Troot - must not be null.cb - must not be null.entity - must not be null.matcher - must not be null.public static <T> javax.persistence.criteria.Predicate getPredicate(javax.persistence.criteria.Root<T> root,
javax.persistence.criteria.CriteriaBuilder cb,
T entity,
org.springframework.data.domain.ExampleMatcher matcher,
org.springframework.data.jpa.repository.query.EscapeCharacter escapeCharacter)
Predicate representing the Example.T - Troot - must not be null.cb - must not be null.entity - Ematcher - must not be null.escapeCharacter - Must not be null.