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 |
NULL_VALUE_NOT_ALLOWED |
NUMERIC_VALUE_OUT_OF_RANGE |
| Modifier and Type | Method and Description |
|---|---|
String |
getState() |
String |
getStateClass() |
String |
getStateSubClass() |
static SqlStateCodes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SqlStateCodes[] |
values()
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
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–2015 The Apache Software Foundation. All rights reserved.