Class PredicateUtil

java.lang.Object
com.skava.helper.PredicateUtil

public final class PredicateUtil extends Object
The Class PredicateUtil. Helper class provides predicates responses.
  • 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 clazz
      ecomSort - 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 clazz
      expression - 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 clazz
      filters - the filters
      Returns:
      the predicate 2