Package com.skava.payment.util
Class QueryDslUtil
java.lang.Object
com.skava.payment.util.QueryDslUtil
QueryDslUtil
- 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 Predicate
-
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.
-