Package org.apache.calcite.avatica.util
Enum Quoting
- All Implemented Interfaces:
Serializable,Comparable<Quoting>,java.lang.constant.Constable
Syntax for quoting identifiers in SQL statements.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionQuote identifiers in back-quotes, and use back-quotes to escape back-quotes.Quote identifiers in back-quotes, and use backslash to escape back-quotes.Quote identifiers in brackets.Quote identifiers in double-quotes, and use double-quote to escape double-quotes.Quote identifiers in double-quotes, and use backslash to escape double-quotes.Quote identifiers in single-quotes, and use single-quotes to escape single-quotes.Quote identifiers in single-quotes, and use backslash to escape single-quotes. -
Field Summary
Fields -
Method Summary
-
Enum Constant Details
-
DOUBLE_QUOTE
Quote identifiers in double-quotes, and use double-quote to escape double-quotes. For example,"my ""id""". -
DOUBLE_QUOTE_BACKSLASH
Quote identifiers in double-quotes, and use backslash to escape double-quotes. For example,"my \"id\"". -
SINGLE_QUOTE
Quote identifiers in single-quotes, and use single-quotes to escape single-quotes. For example,'my ''id'''. -
SINGLE_QUOTE_BACKSLASH
Quote identifiers in single-quotes, and use backslash to escape single-quotes. For example,'my \'id\''. -
BACK_TICK
Quote identifiers in back-quotes, and use back-quotes to escape back-quotes. For example,`my ``id```. -
BACK_TICK_BACKSLASH
Quote identifiers in back-quotes, and use backslash to escape back-quotes. For example,`my \`id\``. -
BRACKET
Quote identifiers in brackets. For example,[my id].
-
-
Field Details
-
string
-
-
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
-