Class QueryHelper


  • public final class QueryHelper
    extends java.lang.Object
    The Class QueryHelper.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> javax.persistence.criteria.Predicate equalsIgnoreCaseIfStringPredicate​(javax.persistence.criteria.CriteriaBuilder criteriaBuilder, javax.persistence.criteria.Path<T> path, java.lang.Object value, javax.persistence.metamodel.SingularAttribute<T,​? extends java.lang.Object> property)
      Equals ignore case if string predicate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • equalsIgnoreCaseIfStringPredicate

        public static <T> javax.persistence.criteria.Predicate equalsIgnoreCaseIfStringPredicate​(javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
                                                                                                 javax.persistence.criteria.Path<T> path,
                                                                                                 java.lang.Object value,
                                                                                                 javax.persistence.metamodel.SingularAttribute<T,​? extends java.lang.Object> property)
        Equals ignore case if string predicate.
        Type Parameters:
        T - the generic type
        Parameters:
        criteriaBuilder - the criteria builder
        path - the path
        value - the value
        property - the property
        Returns:
        the predicate