| Modifier and Type | Field and Description |
|---|---|
| public static final int | _ROWID_
The token "_ROWID_". |
| public static final int | ALL
The token "ALL". |
| public static final int | AND
The token "AND". |
| public static final int | ANY
The token "ANY". |
| public static final int | ARRAY
The token "ARRAY". |
| public static final int | AS
The token "AS". |
| public static final int | ASYMMETRIC
The token "ASYMMETRIC". |
| public static final int | AUTHORIZATION
The token "AUTHORIZATION". |
| public static final int | BETWEEN
The token "BETWEEN". |
| public static final int | CASE
The token "CASE". |
| public static final int | CAST
The token "CAST". |
| public static final int | CHECK
The token "CHECK". |
| public static final int | CONSTRAINT
The token "CONSTRAINT". |
| public static final int | CROSS
The token "CROSS". |
| public static final int | CURRENT_CATALOG
The token "CURRENT_CATALOG". |
| public static final int | CURRENT_DATE
The token "CURRENT_DATE". |
| public static final int | CURRENT_PATH
The token "CURRENT_PATH". |
| public static final int | CURRENT_ROLE
The token "CURRENT_ROLE". |
| public static final int | CURRENT_SCHEMA
The token "CURRENT_SCHEMA". |
| public static final int | CURRENT_TIME
The token "CURRENT_TIME". |
| public static final int | CURRENT_TIMESTAMP
The token "CURRENT_TIMESTAMP". |
| public static final int | CURRENT_USER
The token "CURRENT_USER". |
| public static final int | DAY
The token "DAY". |
| public static final int | DEFAULT
The token "DEFAULT". |
| public static final int | DISTINCT
The token "DISTINCT". |
| public static final int | ELSE
The token "ELSE". |
| public static final int | END
The token "END". |
| public static final int | EXCEPT
The token "EXCEPT". |
| public static final int | EXISTS
The token "EXISTS". |
| public static final int | FALSE
The token "FALSE". |
| public static final int | FETCH
The token "FETCH". |
| public static final int | FIRST_KEYWORD
The ordinal number of the first keyword. |
| public static final int | FOR
The token "FOR". |
| public static final int | FOREIGN
The token "FOREIGN". |
| public static final int | FROM
The token "FROM". |
| public static final int | FULL
The token "FULL". |
| public static final int | GROUP
The token "GROUP". |
| public static final int | HAVING
The token "HAVING". |
| public static final int | HOUR
The token "HOUR". |
| public static final int | IDENTIFIER
An identifier (table name, column name,...). |
| public static final int | IF
The token "IF". |
| public static final int | IN
The token "IN". |
| public static final int | INNER
The token "INNER". |
| public static final int | INTERSECT
The token "INTERSECT". |
| public static final int | INTERVAL
The token "INTERVAL". |
| public static final int | IS
The token "IS". |
| public static final int | JOIN
The token "JOIN". |
| public static final int | KEY
The token "KEY". |
| public static final int | KEYWORD
A keyword. |
| private static final HashMap | |
| public static final int | LAST_KEYWORD
The ordinal number of the last keyword. |
| public static final int | LEFT
The token "LEFT". |
| public static final int | LIKE
The token "LIKE". |
| public static final int | LIMIT
The token "LIMIT". |
| public static final int | LOCALTIME
The token "LOCALTIME". |
| public static final int | LOCALTIMESTAMP
The token "LOCALTIMESTAMP". |
| public static final int | MINUS
The token "MINUS". |
| public static final int | MINUTE
The token "MINUTE". |
| public static final int | MONTH
The token "MONTH". |
| public static final int | NATURAL
The token "NATURAL". |
| public static final int | NOT
The token "NOT". |
| public static final int | NULL
The token "NULL". |
| public static final int | OFFSET
The token "OFFSET". |
| public static final int | ON
The token "ON". |
| public static final int | OR
The token "OR". |
| public static final int | ORDER
The token "ORDER". |
| public static final int | PRIMARY
The token "PRIMARY". |
| public static final int | QUALIFY
The token "QUALIFY". |
| public static final int | RIGHT
The token "RIGHT". |
| public static final int | ROW
The token "ROW". |
| public static final int | ROWNUM
The token "ROWNUM". |
| public static final int | SECOND
The token "SECOND". |
| public static final int | SELECT
The token "SELECT". |
| public static final int | SESSION_USER
The token "SESSION_USER". |
| public static final int | SET
The token "SET". |
| public static final int | SOME
The token "SOME". |
| public static final int | SYMMETRIC
The token "SYMMETRIC". |
| public static final int | SYSTEM_USER
The token "SYSTEM_USER". |
| public static final int | TABLE
The token "TABLE". |
| public static final int | TO
The token "TO". |
| public static final int | TRUE
The token "TRUE". |
| public static final int | UESCAPE
The token "UESCAPE". |
| public static final int | UNION
The token "UNION". |
| public static final int | UNIQUE
The token "UNIQUE". |
| public static final int | UNKNOWN
The token "UNKNOWN". |
| public static final int | USER
The token "USER". |
| public static final int | USING
The token "USING". |
| public static final int | VALUE
The token "VALUE". |
| public static final int | VALUES
The token "VALUES". |
| public static final int | WHEN
The token "WHEN". |
| public static final int | WHERE
The token "WHERE". |
| public static final int | WINDOW
The token "WINDOW". |
| public static final int | WITH
The token "WITH". |
| public static final int | YEAR
The token "YEAR". |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public static int | Returns: the token typethe string with token s, boolean true if case should be ignored, false if only upper case
tokens are detected as keywords ignoreCase, boolean whether context-sensitive keywords are returned as
additionalKeywords)KEYWORDGet the token type. |
| public static boolean | |
| public static boolean | Returns: is specified identifier may be used without quotesidentifier to check s, boolean whether unquoted identifiers are converted to upper case databaseToUpper, boolean whether unquoted identifiers are converted to lower case databaseToLower)Is this a simple identifier (in the JDBC specification sense). |
| public static StringBuilder | Returns: the specified builderstring builder to append to builder, String the identifier s, int formatting flags sqlFlags)Add double quotes around an identifier if required and appends it to the specified string builder. |
| _ROWID_ | back to summary |
|---|---|
| public static final int _ROWID_ The token "_ROWID_". | |
| ALL | back to summary |
|---|---|
| public static final int ALL The token "ALL". | |
| AND | back to summary |
|---|---|
| public static final int AND The token "AND". | |
| ANY | back to summary |
|---|---|
| public static final int ANY The token "ANY". | |
| ARRAY | back to summary |
|---|---|
| public static final int ARRAY The token "ARRAY". | |
| AS | back to summary |
|---|---|
| public static final int AS The token "AS". | |
| ASYMMETRIC | back to summary |
|---|---|
| public static final int ASYMMETRIC The token "ASYMMETRIC". | |
| AUTHORIZATION | back to summary |
|---|---|
| public static final int AUTHORIZATION The token "AUTHORIZATION". | |
| BETWEEN | back to summary |
|---|---|
| public static final int BETWEEN The token "BETWEEN". | |
| CASE | back to summary |
|---|---|
| public static final int CASE The token "CASE". | |
| CAST | back to summary |
|---|---|
| public static final int CAST The token "CAST". | |
| CHECK | back to summary |
|---|---|
| public static final int CHECK The token "CHECK". | |
| CONSTRAINT | back to summary |
|---|---|
| public static final int CONSTRAINT The token "CONSTRAINT". | |
| CROSS | back to summary |
|---|---|
| public static final int CROSS The token "CROSS". | |
| CURRENT_CATALOG | back to summary |
|---|---|
| public static final int CURRENT_CATALOG The token "CURRENT_CATALOG". | |
| CURRENT_DATE | back to summary |
|---|---|
| public static final int CURRENT_DATE The token "CURRENT_DATE". | |
| CURRENT_PATH | back to summary |
|---|---|
| public static final int CURRENT_PATH The token "CURRENT_PATH". | |
| CURRENT_ROLE | back to summary |
|---|---|
| public static final int CURRENT_ROLE The token "CURRENT_ROLE". | |
| CURRENT_SCHEMA | back to summary |
|---|---|
| public static final int CURRENT_SCHEMA The token "CURRENT_SCHEMA". | |
| CURRENT_TIME | back to summary |
|---|---|
| public static final int CURRENT_TIME The token "CURRENT_TIME". | |
| CURRENT_TIMESTAMP | back to summary |
|---|---|
| public static final int CURRENT_TIMESTAMP The token "CURRENT_TIMESTAMP". | |
| CURRENT_USER | back to summary |
|---|---|
| public static final int CURRENT_USER The token "CURRENT_USER". | |
| DAY | back to summary |
|---|---|
| public static final int DAY The token "DAY". | |
| DEFAULT | back to summary |
|---|---|
| public static final int DEFAULT The token "DEFAULT". | |
| DISTINCT | back to summary |
|---|---|
| public static final int DISTINCT The token "DISTINCT". | |
| ELSE | back to summary |
|---|---|
| public static final int ELSE The token "ELSE". | |
| END | back to summary |
|---|---|
| public static final int END The token "END". | |
| EXCEPT | back to summary |
|---|---|
| public static final int EXCEPT The token "EXCEPT". | |
| EXISTS | back to summary |
|---|---|
| public static final int EXISTS The token "EXISTS". | |
| FALSE | back to summary |
|---|---|
| public static final int FALSE The token "FALSE". | |
| FETCH | back to summary |
|---|---|
| public static final int FETCH The token "FETCH". | |
| FIRST_KEYWORD | back to summary |
|---|---|
| public static final int FIRST_KEYWORD The ordinal number of the first keyword. | |
| FOR | back to summary |
|---|---|
| public static final int FOR The token "FOR". | |
| FOREIGN | back to summary |
|---|---|
| public static final int FOREIGN The token "FOREIGN". | |
| FROM | back to summary |
|---|---|
| public static final int FROM The token "FROM". | |
| FULL | back to summary |
|---|---|
| public static final int FULL The token "FULL". | |
| GROUP | back to summary |
|---|---|
| public static final int GROUP The token "GROUP". | |
| HAVING | back to summary |
|---|---|
| public static final int HAVING The token "HAVING". | |
| HOUR | back to summary |
|---|---|
| public static final int HOUR The token "HOUR". | |
| IDENTIFIER | back to summary |
|---|---|
| public static final int IDENTIFIER An identifier (table name, column name,...). | |
| IF | back to summary |
|---|---|
| public static final int IF The token "IF". | |
| IN | back to summary |
|---|---|
| public static final int IN The token "IN". | |
| INNER | back to summary |
|---|---|
| public static final int INNER The token "INNER". | |
| INTERSECT | back to summary |
|---|---|
| public static final int INTERSECT The token "INTERSECT". | |
| INTERVAL | back to summary |
|---|---|
| public static final int INTERVAL The token "INTERVAL". | |
| IS | back to summary |
|---|---|
| public static final int IS The token "IS". | |
| JOIN | back to summary |
|---|---|
| public static final int JOIN The token "JOIN". | |
| KEY | back to summary |
|---|---|
| public static final int KEY The token "KEY". | |
| KEYWORD | back to summary |
|---|---|
| public static final int KEYWORD A keyword. | |
| KEYWORDS | back to summary |
|---|---|
| private static final HashMap<String, Integer> KEYWORDS | |
| LAST_KEYWORD | back to summary |
|---|---|
| public static final int LAST_KEYWORD The ordinal number of the last keyword. | |
| LEFT | back to summary |
|---|---|
| public static final int LEFT The token "LEFT". | |
| LIKE | back to summary |
|---|---|
| public static final int LIKE The token "LIKE". | |
| LIMIT | back to summary |
|---|---|
| public static final int LIMIT The token "LIMIT". | |
| LOCALTIME | back to summary |
|---|---|
| public static final int LOCALTIME The token "LOCALTIME". | |
| LOCALTIMESTAMP | back to summary |
|---|---|
| public static final int LOCALTIMESTAMP The token "LOCALTIMESTAMP". | |
| MINUS | back to summary |
|---|---|
| public static final int MINUS The token "MINUS". | |
| MINUTE | back to summary |
|---|---|
| public static final int MINUTE The token "MINUTE". | |
| MONTH | back to summary |
|---|---|
| public static final int MONTH The token "MONTH". | |
| NATURAL | back to summary |
|---|---|
| public static final int NATURAL The token "NATURAL". | |
| NOT | back to summary |
|---|---|
| public static final int NOT The token "NOT". | |
| NULL | back to summary |
|---|---|
| public static final int NULL The token "NULL". | |
| OFFSET | back to summary |
|---|---|
| public static final int OFFSET The token "OFFSET". | |
| ON | back to summary |
|---|---|
| public static final int ON The token "ON". | |
| OR | back to summary |
|---|---|
| public static final int OR The token "OR". | |
| ORDER | back to summary |
|---|---|
| public static final int ORDER The token "ORDER". | |
| PRIMARY | back to summary |
|---|---|
| public static final int PRIMARY The token "PRIMARY". | |
| QUALIFY | back to summary |
|---|---|
| public static final int QUALIFY The token "QUALIFY". | |
| RIGHT | back to summary |
|---|---|
| public static final int RIGHT The token "RIGHT". | |
| ROW | back to summary |
|---|---|
| public static final int ROW The token "ROW". | |
| ROWNUM | back to summary |
|---|---|
| public static final int ROWNUM The token "ROWNUM". | |
| SECOND | back to summary |
|---|---|
| public static final int SECOND The token "SECOND". | |
| SELECT | back to summary |
|---|---|
| public static final int SELECT The token "SELECT". | |
| SESSION_USER | back to summary |
|---|---|
| public static final int SESSION_USER The token "SESSION_USER". | |
| SET | back to summary |
|---|---|
| public static final int SET The token "SET". | |
| SOME | back to summary |
|---|---|
| public static final int SOME The token "SOME". | |
| SYMMETRIC | back to summary |
|---|---|
| public static final int SYMMETRIC The token "SYMMETRIC". | |
| SYSTEM_USER | back to summary |
|---|---|
| public static final int SYSTEM_USER The token "SYSTEM_USER". | |
| TABLE | back to summary |
|---|---|
| public static final int TABLE The token "TABLE". | |
| TO | back to summary |
|---|---|
| public static final int TO The token "TO". | |
| TRUE | back to summary |
|---|---|
| public static final int TRUE The token "TRUE". | |
| UESCAPE | back to summary |
|---|---|
| public static final int UESCAPE The token "UESCAPE". | |
| UNION | back to summary |
|---|---|
| public static final int UNION The token "UNION". | |
| UNIQUE | back to summary |
|---|---|
| public static final int UNIQUE The token "UNIQUE". | |
| UNKNOWN | back to summary |
|---|---|
| public static final int UNKNOWN The token "UNKNOWN". | |
| USER | back to summary |
|---|---|
| public static final int USER The token "USER". | |
| USING | back to summary |
|---|---|
| public static final int USING The token "USING". | |
| VALUE | back to summary |
|---|---|
| public static final int VALUE The token "VALUE". | |
| VALUES | back to summary |
|---|---|
| public static final int VALUES The token "VALUES". | |
| WHEN | back to summary |
|---|---|
| public static final int WHEN The token "WHEN". | |
| WHERE | back to summary |
|---|---|
| public static final int WHERE The token "WHERE". | |
| WINDOW | back to summary |
|---|---|
| public static final int WINDOW The token "WINDOW". | |
| WITH | back to summary |
|---|---|
| public static final int WITH The token "WITH". | |
| YEAR | back to summary |
|---|---|
| public static final int YEAR The token "YEAR". | |
| ParserUtil | back to summary |
|---|---|
| private ParserUtil() | |
| checkLetter | back to summary |
|---|---|
| private static boolean checkLetter(boolean databaseToUpper, boolean databaseToLower, char c) | |
| getTokenType | back to summary |
|---|---|
| public static int getTokenType(String s, boolean ignoreCase, boolean additionalKeywords) Get the token type. | |
| isKeyword | back to summary |
|---|---|
| public static boolean isKeyword(String s, boolean ignoreCase) Checks if this string is a SQL keyword.
| |
| isSimpleIdentifier | back to summary |
|---|---|
| public static boolean isSimpleIdentifier(String s, boolean databaseToUpper, boolean databaseToLower) Is this a simple identifier (in the JDBC specification sense).
| |
| quoteIdentifier | back to summary |
|---|---|
| public static StringBuilder quoteIdentifier(StringBuilder builder, String s, int sqlFlags) Add double quotes around an identifier if required and appends it to the specified string builder.
| |