Package org.apache.calcite.sql
Enum SqlStateCodes
- java.lang.Object
-
- java.lang.Enum<SqlStateCodes>
-
- org.apache.calcite.sql.SqlStateCodes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SqlStateCodes>
@Deprecated public enum SqlStateCodes extends java.lang.Enum<SqlStateCodes>
Deprecated.Useorg.apache.calcite.avatica.SqlState
ContainsGlossary.SQL2003
SQL state codes.SQL State codes are defined in
@sql.2003 Part 2 Section 23.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CARDINALITY_VIOLATION
Deprecated.NULL_VALUE_NOT_ALLOWED
Deprecated.NUMERIC_VALUE_OUT_OF_RANGE
Deprecated.
-
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.
-
-
-
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.
-
-
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 namejava.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.
-
-