org.apache.calcite.avatica.SqlState
@Deprecated public enum SqlStateCodes extends java.lang.Enum<SqlStateCodes>
Glossary.SQL2003
SQL state codes.
SQL State codes are defined in
@sql.2003 Part 2 Section 23.1
Enum Constant and Description |
---|
CARDINALITY_VIOLATION
Deprecated.
|
NULL_VALUE_NOT_ALLOWED
Deprecated.
|
NUMERIC_VALUE_OUT_OF_RANGE
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
msg
Deprecated.
|
private java.lang.String |
stateClass
Deprecated.
|
private java.lang.String |
stateSubClass
Deprecated.
|
Modifier and Type | Method and 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.
|
public static final SqlStateCodes CARDINALITY_VIOLATION
public static final SqlStateCodes NULL_VALUE_NOT_ALLOWED
public static final SqlStateCodes NUMERIC_VALUE_OUT_OF_RANGE
private final java.lang.String msg
private final java.lang.String stateClass
private final java.lang.String stateSubClass
public static SqlStateCodes[] values()
for (SqlStateCodes c : SqlStateCodes.values()) System.out.println(c);
public static SqlStateCodes valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getStateClass()
public java.lang.String getStateSubClass()
public java.lang.String getState()
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.