Package com.skava.util
Class QueryDslUtil
java.lang.Object
com.skava.util.QueryDslUtil
PredicateUtil Class
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
checkIfSpecificationFormat
(String filter) This method is used to check whether the given filter is valid or not.static com.querydsl.core.types.Predicate
getPredicate
(Class<?> entityClazz, String expression) This method is used to get QueryDSL Predicate from the given expression.
-
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
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.
-