类 DynamicQueryPredicateBuilder


  • 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.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • getPredicate

        public 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.
        类型参数:
        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)
        Extract the Predicate representing the Example.
        类型参数:
        T - T
        参数:
        root - must not be null.
        cb - must not be null.
        entity - must not be null.
        matcher - 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,
                                                                            org.springframework.data.jpa.repository.query.EscapeCharacter escapeCharacter)
        Extract the Predicate representing the Example.
        类型参数:
        T - T
        参数:
        root - must not be null.
        cb - must not be null.
        entity - E
        matcher - must not be null.
        escapeCharacter - Must not be null.
        返回:
        never null.