Enum OdbcEscapeType

    • Method Detail

      • values

        public static OdbcEscapeType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (OdbcEscapeType c : OdbcEscapeType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OdbcEscapeType 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
      • sortedValues

        public static OdbcEscapeType[] sortedValues()
        Get values in convenient order, where the most frequent values goes first, and "startsWith" invocation is enough to get type (i.e. "ts" goes before "t").
        Returns:
        Values.
      • body

        public String body()
        Returns:
        Escape sequence body.
      • standard

        public boolean standard()
        Returns:
        Whether this is a standard token with no special handling.
      • allowEmpty

        public boolean allowEmpty()
        Returns:
        Whether empty escape sequence is allowed.