Enum SqlStateCodes

java.lang.Object
java.lang.Enum<SqlStateCodes>
org.apache.calcite.sql.SqlStateCodes
All Implemented Interfaces:
Serializable, Comparable<SqlStateCodes>, Constable

@Deprecated public enum SqlStateCodes extends Enum<SqlStateCodes>
Deprecated.
Use org.apache.calcite.avatica.SqlState
Contains Glossary.SQL2003 SQL state codes.

SQL State codes are defined in

@sql.2003 Part 2 Section 23.1
  • Enum Constant Details

    • CARDINALITY_VIOLATION

      public static final SqlStateCodes CARDINALITY_VIOLATION
      Deprecated.
    • NULL_VALUE_NOT_ALLOWED

      public static final SqlStateCodes NULL_VALUE_NOT_ALLOWED
      Deprecated.
    • NUMERIC_VALUE_OUT_OF_RANGE

      public static final SqlStateCodes NUMERIC_VALUE_OUT_OF_RANGE
      Deprecated.
  • Method Details

    • values

      public static SqlStateCodes[] values()
      Deprecated.
      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 SqlStateCodes valueOf(String name)
      Deprecated.
      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
    • getStateClass

      public String getStateClass()
      Deprecated.
    • getStateSubClass

      public String getStateSubClass()
      Deprecated.
    • getState

      public String getState()
      Deprecated.