Package com.skava.helper
Class PredicateUtil
java.lang.Object
com.skava.helper.PredicateUtil
The Class PredicateUtil. Helper class provides predicates responses.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.querydsl.core.types.Predicate
getPredicate1
(Class<?> entityClazz, String expression) Gets the predicate 1.static com.querydsl.core.types.Predicate
getPredicate2
(Class<?> entityClazz, com.skava.core.qdsl.filter.EcomFilters filters) Gets the predicate 2.static org.springframework.data.domain.Sort
Gets the sort.
-
Method Details
-
getSort
public static org.springframework.data.domain.Sort getSort(Class<?> entityClazz, com.skava.core.qdsl.sort.EcomSorts ecomSort) 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) 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) Gets the predicate 2.- Parameters:
entityClazz
- the entity clazzfilters
- the filters- Returns:
- the predicate 2
-