Package gudusoft.gsqlparser.sqlenv
Enum IdentifierRules.CaseCompare
- All Implemented Interfaces:
Serializable,Comparable<IdentifierRules.CaseCompare>,java.lang.constant.Constable
- Enclosing class:
- IdentifierRules
大小写比较规则(Case Comparison)
决定如何比较两个标识符是否相等
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription基于 collation(运行时决定)大小写不敏感与 unquoted 规则一致大小写敏感 -
Method Summary
Modifier and TypeMethodDescriptionstatic IdentifierRules.CaseCompareReturns 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.
-
Enum Constant Details
-
SENSITIVE
大小写敏感例如:ClickHouse 所有标识符, 所有 quoted identifiers
-
INSENSITIVE
大小写不敏感例如:Oracle unquoted, MySQL unquoted
-
COLLATION_BASED
基于 collation(运行时决定)例如:SQL Server, Azure SQL
需要使用
Collator进行比较 -
SAME_AS_UNQUOTED
与 unquoted 规则一致例如:Presto quoted identifiers, Vertica quoted identifiers
在解析时需要回退到 unquotedCompare
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-