类 LofterQueryPredicateBuilder
- java.lang.Object
-
- net.qimooc.commons.query.builder.LofterQueryPredicateBuilder
-
public class LofterQueryPredicateBuilder extends java.lang.Object
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static <T> javax.persistence.criteria.PredicategetPredicate(javax.persistence.criteria.Root<T> root, javax.persistence.criteria.CriteriaBuilder cb, T entity)Extract thePredicaterepresenting theExample.static <T> javax.persistence.criteria.PredicategetPredicate(javax.persistence.criteria.Root<T> root, javax.persistence.criteria.CriteriaBuilder cb, T entity, org.springframework.data.domain.ExampleMatcher matcher)
-
-
-
方法详细资料
-
getPredicate
public static <T> javax.persistence.criteria.Predicate getPredicate(javax.persistence.criteria.Root<T> root, javax.persistence.criteria.CriteriaBuilder cb, T entity)Extract thePredicaterepresenting theExample.- 类型参数:
T- T- 参数:
root- must not be null.cb- must not be null.entity- must not be null.- 返回:
- never null.
-
getPredicate
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)
-
-