public static enum IdentifierRules.CaseFold extends Enum<IdentifierRules.CaseFold>
决定如何规范化标识符的大小写
| Enum Constant and Description |
|---|
LOWER
转小写
|
LOWER_ASCII
Only
A..Z are lowered; every other character is kept. |
LOWER_SIMPLE
Simple lowercase mapping, one code point to one, no Final_Sigma context
(
İ becomes i). |
NONE
不转换(保留原样)
|
UPPER
转大写
|
UPPER_SIMPLE
Simple uppercase mapping, one code point to one (
ß is kept): each code point
becomes its UnicodeData Simple_Uppercase_Mapping. |
| Modifier and Type | Method and Description |
|---|---|
static IdentifierRules.CaseFold |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IdentifierRules.CaseFold[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IdentifierRules.CaseFold NONE
例如:Couchbase unquoted, 所有 quoted identifiers
public static final IdentifierRules.CaseFold UPPER
例如:Oracle unquoted, DB2 unquoted, Snowflake unquoted
public static final IdentifierRules.CaseFold LOWER
例如:PostgreSQL unquoted, Redshift unquoted, Greenplum unquoted
public static final IdentifierRules.CaseFold UPPER_SIMPLE
ß is kept): each code point
becomes its UnicodeData Simple_Uppercase_Mapping. SQL-LR UPPER_SIMPLE.
例如:Oracle unquoted (straße is stored as STRAßE, not
STRASSE; verified on Oracle 23.26).
public static final IdentifierRules.CaseFold LOWER_SIMPLE
İ becomes i). SQL-LR LOWER_SIMPLE.
例如:MySQL table names under lower_case_table_names=1
(verified on MySQL 8.4).
public static final IdentifierRules.CaseFold LOWER_ASCII
A..Z are lowered; every other character is kept. SQL-LR
LOWER_ASCII.
例如:PostgreSQL unquoted in a UTF8 database (ÄBC is stored as
Äbc; verified on PostgreSQL 16).
public static IdentifierRules.CaseFold[] values()
for (IdentifierRules.CaseFold c : IdentifierRules.CaseFold.values()) System.out.println(c);
public static IdentifierRules.CaseFold valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null