Package com.skava.accounts.util
Class QueryDslUtil
java.lang.Object
com.skava.accounts.util.QueryDslUtil
Utility class for search operations using QueryDSL libraries.
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.static com.querydsl.core.types.Predicate
getPredicate
(Class<?> entityClazz, String expression) Get Querydsl Predicatestatic void
validateFilter
(AccountsDO accountDO, com.skava.core.auth.AuthTokenHandler authTokenHandler, AccountCommonServices accountCommonServices) validateFilterstatic void
validateFilter
(AttributeDO accountDO)
-
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 predicateexpression
- It contains filters to be applied.- Returns:
- it returns predicate.
-
checkIfSpecificationFormat
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 typeAccountsDO
authTokenHandler
- the authTokenHandleraccountCommonServices
- the accountCommonServices
-
validateFilter
-