Package io.jmix.core
Class QueryUtils
java.lang.Object
io.jmix.core.QueryUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
applyQueryStringProcessors
(Collection<QueryStringProcessor> processors, String query, Class<?> entityClass) Returns the query string after applying the given processors on it.static String
escapeForLike
(String value) Escapes a parameter value for a 'like' operation in JPQL querystatic String
escapeForLike
(String value, String escapeCharacter) Escapes a parameter value for a 'like' operation in JPQL query
-
Field Details
-
ESCAPE_CHARACTER
- See Also:
-
CASE_INSENSITIVE_MARKER
- See Also:
-
QUERY_PARAMETER_REGEXP
- See Also:
-
LIKE_REGEXP
- See Also:
-
-
Constructor Details
-
QueryUtils
public QueryUtils()
-
-
Method Details
-
escapeForLike
Escapes a parameter value for a 'like' operation in JPQL query- Parameters:
value
- parameter value- Returns:
- escaped parameter value
-
escapeForLike
Escapes a parameter value for a 'like' operation in JPQL query- Parameters:
value
- parameter valueescapeCharacter
- escape character- Returns:
- escaped parameter value
-
applyQueryStringProcessors
public static String applyQueryStringProcessors(Collection<QueryStringProcessor> processors, String query, Class<?> entityClass) Returns the query string after applying the given processors on it.- Parameters:
processors
- query processorsquery
- query stringentityClass
- queried entity- Returns:
- result of the processing
-