Class QueryDslUtil

java.lang.Object
com.skava.util.QueryDslUtil

public final class QueryDslUtil extends Object
PredicateUtil Class
Author:
Infosys Equinox
  • Method Details

    • getPredicate

      public static com.querydsl.core.types.Predicate getPredicate(Class<?> entityClazz, String expression)
      This method is used to get QueryDSL Predicate from the given expression.
      Parameters:
      entityClazz - Indicates the entity class used for predicate.
      expression - Indicates the filters to be applied.
      Returns:
      The Predicate object.
    • checkIfSpecificationFormat

      public static String checkIfSpecificationFormat(String filter)
      This method is used to check whether the given filter is valid or not.
      Parameters:
      filter - Indicates the filter from the request.
      Returns:
      The valid string.