Enum Quoting

java.lang.Object
java.lang.Enum<Quoting>
org.apache.calcite.avatica.util.Quoting
All Implemented Interfaces:
Serializable, Comparable<Quoting>, java.lang.constant.Constable

public enum Quoting extends Enum<Quoting>
Syntax for quoting identifiers in SQL statements.
  • Enum Constant Details

    • DOUBLE_QUOTE

      public static final Quoting DOUBLE_QUOTE
      Quote identifiers in double-quotes, and use double-quote to escape double-quotes. For example, "my ""id""".
    • DOUBLE_QUOTE_BACKSLASH

      public static final Quoting DOUBLE_QUOTE_BACKSLASH
      Quote identifiers in double-quotes, and use backslash to escape double-quotes. For example, "my \"id\"".
    • SINGLE_QUOTE

      public static final Quoting SINGLE_QUOTE
      Quote identifiers in single-quotes, and use single-quotes to escape single-quotes. For example, 'my ''id'''.
    • SINGLE_QUOTE_BACKSLASH

      public static final Quoting SINGLE_QUOTE_BACKSLASH
      Quote identifiers in single-quotes, and use backslash to escape single-quotes. For example, 'my \'id\''.
    • BACK_TICK

      public static final Quoting BACK_TICK
      Quote identifiers in back-quotes, and use back-quotes to escape back-quotes. For example, `my ``id```.
    • BACK_TICK_BACKSLASH

      public static final Quoting BACK_TICK_BACKSLASH
      Quote identifiers in back-quotes, and use backslash to escape back-quotes. For example, `my \`id\``.
    • BRACKET

      public static final Quoting BRACKET
      Quote identifiers in brackets. For example, [my id].
  • Field Details

    • string

      public String string
  • Method Details

    • values

      public static Quoting[] 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

      public static Quoting valueOf(String name)
      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 name
      NullPointerException - if the argument is null