Class QueryDslUtil

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

public final class QueryDslUtil extends Object
Utility class for search operations using QueryDSL libraries.
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.
    • validateFilter

      public static void validateFilter(AccountsDO accountDO, com.skava.core.auth.AuthTokenHandler authTokenHandler, AccountCommonServices accountCommonServices)
      validateFilter
      Parameters:
      accountDO - the object of type AccountsDO
      authTokenHandler - the authTokenHandler
      accountCommonServices - the accountCommonServices
    • validateFilter

      public static void validateFilter(AttributeDO accountDO)