public class ParserUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
FALSE
The token "false".
|
static int |
IDENTIFIER
An identifier (table name, column name,...).
|
static int |
KEYWORD
A keyword.
|
static int |
NULL
The token "null".
|
static int |
ROWNUM
The token "rownum".
|
static int |
TRUE
The token "true".
|
Modifier and Type | Method and Description |
---|---|
static int |
getSaveTokenType(String s,
boolean functionsAsKeywords)
Get the token type.
|
static boolean |
isKeyword(String s)
Checks if this string is a SQL keyword.
|
static boolean |
isSimpleIdentifier(String s,
boolean functionsAsKeywords)
Is this a simple identifier (in the JDBC specification sense).
|
public static final int KEYWORD
public static final int IDENTIFIER
public static final int NULL
public static final int TRUE
public static final int FALSE
public static final int ROWNUM
public static boolean isKeyword(String s)
s
- the token to checkpublic static boolean isSimpleIdentifier(String s, boolean functionsAsKeywords)
s
- identifier to checkfunctionsAsKeywords
- treat system functions as keywordsNullPointerException
- if s is null
public static int getSaveTokenType(String s, boolean functionsAsKeywords)
s
- the tokenfunctionsAsKeywords
- whether "current data / time" functions are keywordsCopyright © 2020 JBoss by Red Hat. All rights reserved.