public class QueryUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ESCAPE_CHARACTER |
Constructor and Description |
---|
QueryUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
escapeForLike(java.lang.String value)
Escapes a parameter value for a 'like' operation in JPQL query
|
static java.lang.String |
escapeForLike(java.lang.String value,
java.lang.String escapeCharacter)
Escapes a parameter value for a 'like' operation in JPQL query
|
public static final java.lang.String ESCAPE_CHARACTER
public static java.lang.String escapeForLike(java.lang.String value)
value
- parameter valuepublic static java.lang.String escapeForLike(java.lang.String value, java.lang.String escapeCharacter)
value
- parameter valueescapeCharacter
- escape character