java.lang.Object
com.hack23.cia.service.data.impl.QueryHelper
public final class QueryHelper
extends java.lang.Object
The Class QueryHelper.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> javax.persistence.criteria.PredicateequalsIgnoreCaseIfStringPredicate(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 Details
-
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 builderpath- the pathvalue- the valueproperty- the property- Returns:
- the predicate
-