org.apache.calcite.avatica.SqlState@Deprecated public enum SqlStateCodes extends 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 String |
msg
Deprecated.
|
private String |
stateClass
Deprecated.
|
private String |
stateSubClass
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getState()
Deprecated.
|
String |
getStateClass()
Deprecated.
|
String |
getStateSubClass()
Deprecated.
|
static SqlStateCodes |
valueOf(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 String msg
private final String stateClass
private final String stateSubClass
public static SqlStateCodes[] values()
for (SqlStateCodes c : SqlStateCodes.values()) System.out.println(c);
public static SqlStateCodes valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getStateClass()
public String getStateSubClass()
public String getState()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.