Enum SqlStateCodes

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SqlStateCodes>

    @Deprecated
    public enum SqlStateCodes
    extends java.lang.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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String msg
      Deprecated.
       
      private java.lang.String stateClass
      Deprecated.
       
      private java.lang.String stateSubClass
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SqlStateCodes​(java.lang.String msg, java.lang.String stateClass, java.lang.String stateSubClass)
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String getState()
      Deprecated.
       
      java.lang.String getStateClass()
      Deprecated.
       
      java.lang.String getStateSubClass()
      Deprecated.
       
      static SqlStateCodes valueOf​(java.lang.String name)
      Deprecated.
      Returns the enum constant of this type with the specified name.
      static SqlStateCodes[] values()
      Deprecated.
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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.
    • Field Detail

      • msg

        private final java.lang.String msg
        Deprecated.
      • stateClass

        private final java.lang.String stateClass
        Deprecated.
      • stateSubClass

        private final java.lang.String stateSubClass
        Deprecated.
    • Constructor Detail

      • SqlStateCodes

        private SqlStateCodes​(java.lang.String msg,
                              java.lang.String stateClass,
                              java.lang.String stateSubClass)
        Deprecated.
    • Method Detail

      • values

        public static SqlStateCodes[] values()
        Deprecated.
        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 (SqlStateCodes c : SqlStateCodes.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SqlStateCodes valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getStateClass

        public java.lang.String getStateClass()
        Deprecated.
      • getStateSubClass

        public java.lang.String getStateSubClass()
        Deprecated.
      • getState

        public java.lang.String getState()
        Deprecated.