Package com.skava.helper
Class PredicateUtil
java.lang.Object
com.skava.helper.PredicateUtil
CLass PRedictUtil
The Class PredicateUtil. Helper class provides predicates responses.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.querydsl.core.types.PredicategetPredicate1(Class<?> entityClazz, String expression) method getPredictstatic com.querydsl.core.types.PredicategetPredicate2(Class<?> entityClazz, com.skava.core.qdsl.filter.EcomFilters filters) getPredicate2 Gets the predicate 2.static org.springframework.data.domain.Sortmethod getSort
-
Method Details
-
getSort
public static org.springframework.data.domain.Sort getSort(Class<?> entityClazz, com.skava.core.qdsl.sort.EcomSorts ecomSort) method getSort
Gets the sort.
- Parameters:
entityClazz- the entity clazzecomSort- the ecom sort- Returns:
- the sort
-
getPredicate1
public static com.querydsl.core.types.Predicate getPredicate1(Class<?> entityClazz, String expression) method getPredict
Gets the predicate 1.
- Parameters:
entityClazz- the entity clazzexpression- the expression- Returns:
- the predicate 1
-
getPredicate2
public static com.querydsl.core.types.Predicate getPredicate2(Class<?> entityClazz, com.skava.core.qdsl.filter.EcomFilters filters) getPredicate2 Gets the predicate 2.- Parameters:
entityClazz- the entity clazzfilters- the filters- Returns:
- the predicate 2
-