public class JPQLQueryHelper extends Object
| Constructor and Description |
|---|
JPQLQueryHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getJPQLForExpression(Expression expr)
Convenience method to return the JPQL single-string query text for the provided expression.
|
static boolean |
isKeyword(String name)
Convenience method returning if the supplied name is a keyword for this query language.
|
static boolean |
isKeyword(String name,
boolean allowRange)
Convenience method returning if the supplied name is a keyword for this query language (including RANGE).
|
static boolean |
isReservedIdentifier(String name)
Convenience method returning if the supplied name is a reserved identifier for this query language.
|
public static boolean isKeyword(String name)
name - Name to checkpublic static boolean isKeyword(String name, boolean allowRange)
name - Name to checkallowRange - whether to allow the RANGE keyword extensionpublic static boolean isReservedIdentifier(String name)
name - Name to checkpublic static String getJPQLForExpression(Expression expr)
expr - The expressionCopyright © 2018. All rights reserved.