- All Implemented Interfaces:
Serializable
,Comparable<SQLStateClass>
,Constable
The class of the SQL state as specified by the SQL:2011 standard, or by individual
vendors.
Class | Description |
---|---|
00 | Successful completion |
01 | Warning |
02 | No data |
07 | Dynamic SQL Error |
08 | Connection exception |
09 | Triggered action exception |
0A | Feature not supported |
0D | Invalid target type specification |
0E | Invalid schema name list specification |
0F | Locator exception |
0L | Invalid grantor |
0M | Invalid SQL-invoked procedure reference |
0P | Invalid role specification |
0S | Invalid transform group name specification |
0T | Target table disagrees with cursor specification |
0U | Attempt to assign to non-updatable column |
0V | Attempt to assign to ordering column |
0W | Prohibited statement encountered during trigger execution |
0Z | Diagnostics exception |
21 | Cardinality violation |
22 | Data exception |
23 | Integrity constraint violation |
24 | Invalid cursor state |
25 | Invalid transaction state |
26 | Invalid SQL statement name |
27 | Triggered data change violation |
28 | Invalid authorization specification |
2B | Dependent privilege descriptors still exist |
2C | Invalid character set name |
2D | Invalid transaction termination |
2E | Invalid connection name |
2F | SQL routine exception |
2H | Invalid collation name |
30 | Invalid SQL statement identifier |
33 | Invalid SQL descriptor name |
34 | Invalid cursor name |
35 | Invalid condition number |
36 | Cursor sensitivity exception |
38 | External routine exception |
39 | External routine invocation exception |
3B | Savepoint exception |
3C | Ambiguous cursor name |
3D | Invalid catalog name |
3F | Invalid schema name |
40 | Transaction rollback |
42 | Syntax error or access rule violation |
44 | With check option violation |
HZ | Remote database access |
- Author:
- Lukas Eder
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic SQLStateClass
static SQLStateClass
Returns the enum constant of this class with the specified name.static SQLStateClass[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
C00_SUCCESSFUL_COMPLETION
-
C01_WARNING
-
C02_NO_DATA
-
C07_DYNAMIC_SQL_ERROR
-
C08_CONNECTION_EXCEPTION
-
C09_TRIGGERED_ACTION_EXCEPTION
-
C0A_FEATURE_NOT_SUPPORTED
-
C0D_INVALID_TARGET_TYPE_SPECIFICATION
-
C0E_INVALID_SCHEMA_NAME_LIST_SPECIFICATION
-
C0F_LOCATOR_EXCEPTION
-
C0L_INVALID_GRANTOR
-
C0M_INVALID_SQL_INVOKED_PROCEDURE_REFERENCE
-
C0P_INVALID_ROLE_SPECIFICATION
-
C0S_INVALID_TRANSFORM_GROUP_NAME_SPECIFICATION
-
C0T_TARGET_TABLE_DISAGREES_WITH_CURSOR_SPECIFICATION
-
C0U_ATTEMPT_TO_ASSIGN_TO_NON_UPDATABLE_COLUMN
-
C0V_ATTEMPT_TO_ASSIGN_TO_ORDERING_COLUMN
-
C0W_PROHIBITED_STATEMENT_ENCOUNTERED_DURING_TRIGGER_EXECUTION
-
C0Z_DIAGNOSTICS_EXCEPTION
-
C21_CARDINALITY_VIOLATION
-
C22_DATA_EXCEPTION
-
C23_INTEGRITY_CONSTRAINT_VIOLATION
-
C24_INVALID_CURSOR_STATE
-
C25_INVALID_TRANSACTION_STATE
-
C26_INVALID_SQL_STATEMENT_NAME
-
C27_TRIGGERED_DATA_CHANGE_VIOLATION
-
C28_INVALID_AUTHORIZATION_SPECIFICATION
-
C2B_DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST
-
C2C_INVALID_CHARACTER_SET_NAME
-
C2D_INVALID_TRANSACTION_TERMINATION
-
C2E_INVALID_CONNECTION_NAME
-
C2F_SQL_ROUTINE_EXCEPTION
-
C2H_INVALID_COLLATION_NAME
-
C30_INVALID_SQL_STATEMENT_IDENTIFIER
-
C33_INVALID_SQL_DESCRIPTOR_NAME
-
C34_INVALID_CURSOR_NAME
-
C35_INVALID_CONDITION_NUMBER
-
C36_CURSOR_SENSITIVITY_EXCEPTION
-
C38_EXTERNAL_ROUTINE_EXCEPTION
-
C39_EXTERNAL_ROUTINE_INVOCATION_EXCEPTION
-
C3B_SAVEPOINT_EXCEPTION
-
C3C_AMBIGUOUS_CURSOR_NAME
-
C3D_INVALID_CATALOG_NAME
-
C3F_INVALID_SCHEMA_NAME
-
C40_TRANSACTION_ROLLBACK
-
C42_SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION
-
CHZ_REMOTE_DATABASE_ACCESS
-
OTHER
-
NONE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
className
-
fromCode
-