public static enum IdentifierRules.CaseCompare extends Enum<IdentifierRules.CaseCompare>
决定如何比较两个标识符是否相等
| Enum Constant and Description |
|---|
COLLATION_BASED
基于 collation(运行时决定)
|
INSENSITIVE
大小写不敏感
|
SAME_AS_UNQUOTED
与 unquoted 规则一致
|
SENSITIVE
大小写敏感
|
| Modifier and Type | Method and Description |
|---|---|
static IdentifierRules.CaseCompare |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IdentifierRules.CaseCompare[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IdentifierRules.CaseCompare SENSITIVE
例如:Couchbase 所有标识符, 所有 quoted identifiers
public static final IdentifierRules.CaseCompare INSENSITIVE
例如:Oracle unquoted, MySQL unquoted
public static final IdentifierRules.CaseCompare COLLATION_BASED
例如:SQL Server, Azure SQL
需要使用 Collator 进行比较
public static final IdentifierRules.CaseCompare SAME_AS_UNQUOTED
例如:Presto quoted identifiers, Vertica quoted identifiers
在解析时需要回退到 unquotedCompare
public static IdentifierRules.CaseCompare[] values()
for (IdentifierRules.CaseCompare c : IdentifierRules.CaseCompare.values()) System.out.println(c);
public static IdentifierRules.CaseCompare 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