Package org.apache.calcite.avatica
Enum InternalProperty
- All Implemented Interfaces:
Serializable,Comparable<InternalProperty>,java.lang.constant.Constable
Definitions of properties that drive the behavior of
AvaticaDatabaseMetaData.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhether identifiers are matched case-sensitively.How identifiers are stored if they are not quoted.How identifiers are stored if they are quoted.How identifiers are quoted.Character that quotes identifiers.How identifiers are stored if they are not quoted. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(Map<InternalProperty, Object> map) Returns the boolean value of this property.<E extends Enum>
EgetEnum(Map<InternalProperty, Object> map, Class<E> enumClass) Returns the enum value of this property.getString(Map<InternalProperty, Object> map) Returns the string value of this property, or null if not specified and no default.static InternalPropertyReturns the enum constant of this type with the specified name.static InternalProperty[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CASE_SENSITIVE
Whether identifiers are matched case-sensitively. -
SQL_KEYWORDS
Character that quotes identifiers. -
QUOTING
How identifiers are quoted. -
QUOTED_CASING
How identifiers are stored if they are quoted. -
UNQUOTED_CASING
How identifiers are stored if they are not quoted. -
NULL_SORTING
How identifiers are stored if they are not quoted.
-
-
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
-
getString
Returns the string value of this property, or null if not specified and no default. -
getBoolean
Returns the boolean value of this property. Throws if not set and no default. -
getEnum
Returns the enum value of this property. Throws if not set and no default.
-