Class QueryDslUtil

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

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

    • getPredicate

      public static com.querydsl.core.types.Predicate getPredicate(Class<?> entityClazz, String expression)
      Get Querydsl Predicate
      Parameters:
      entityClazz - It contains entitiy to be predicate
      expression - It contains filters to be applied.
      Returns:
      it returns predicate.
    • checkIfSpecificationFormat

      public static String checkIfSpecificationFormat(String filter)
      checkIfSpecificationFormat - This function is used to check if the filter is of specification format and convert it to query dsl format.
      Parameters:
      filter - the filter which will be checked if it has specification format.
      Returns:
      returns the query dsl format filter.