| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| private static final Pattern | |
| private static final String[] | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static String | Returns: A simple SQL identifier or a delimited identifiera SQL identifier identifier, boolean indicates if a simple SQL identifier should be
returned as a delimited identifier alwaysDelimit)Returns a |
| pack-priv static String | Returns: A string enclosed by single quotes with every single quote converted to two single quotesa character string val)Returns a |
| pack-priv static String | Returns: the result of replacing every single quote character in the argument by two single quote characters where this entire result is then prefixed with 'N'.a character string val)Returns a |
| pack-priv static boolean | Returns: true if a simple SQL identifier, false otherwisea SQL identifier identifier)Returns whether |
| INVALID_IDENTIFIER_CHARACTERS_PATTERN | back to summary |
|---|---|
| private static final Pattern INVALID_IDENTIFIER_CHARACTERS_PATTERN | |
| SIMPLE_IDENTIFIER_PATTERN | back to summary |
|---|---|
| private static final Pattern SIMPLE_IDENTIFIER_PATTERN | |
| SQL2023_RESERVED_WORDS | back to summary |
|---|---|
| private static final String[] SQL2023_RESERVED_WORDS | |
| SQL_RESERVED_WORDS | back to summary |
|---|---|
| private static final Set<String> SQL_RESERVED_WORDS | |
| SQLUtils | back to summary |
|---|---|
| pack-priv SQLUtils() | |
| enquoteIdentifier | back to summary | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| pack-priv static String enquoteIdentifier(String delimiter, String identifier, boolean alwaysDelimit) throws SQLException Returns a
If
identifier is not a simple SQL identifier, the delimited
identifier to be returned must be enclosed by the delimiter
returned from DatabaseMetaData#getIdentifierQuoteString. If
the datasource does not support delimited identifiers, a
SQLFeatureNotSupportedException is thrown.
A Implementation Specification The default implementation uses the following criteria to determine a valid simple SQL identifier:
SQLException if:
Implementation Note JDBC driver implementations may need to provide their own implementation of this method in order to meet the requirements of the underlying datasource.
| ||||||||||||||||||||||||||||||||||
| enquoteLiteral | back to summary | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| pack-priv static String enquoteLiteral(String val) throws SQLException Returns a
Implementation Note JDBC driver implementations may need to provide their own implementation of this method in order to meet the requirements of the underlying datasource.
| |||||||||||
| enquoteNCharLiteral | back to summary | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| pack-priv static String enquoteNCharLiteral(String val) throws SQLException Returns a
Implementation Note JDBC driver implementations may need to provide their own implementation of this method in order to meet the requirements of the underlying datasource. An implementation of enquoteNCharLiteral may accept a different set of characters than that accepted by the same drivers implementation of enquoteLiteral.
| |||||||||||||
| isSimpleIdentifier | back to summary | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| pack-priv static boolean isSimpleIdentifier(String identifier) throws SQLException Returns whether The rules for a regular Identifier are:
A datasource may have additional rules for a regular identifier such as:
Implementation Specification The default implementation uses the following criteria to determine a valid simple SQL identifier:
Implementation Note JDBC driver implementations may need to provide their own implementation of this method in order to meet the requirements of the underlying datasource.
| |||||||||||||||||||