public enum SQLStateClass extends Enum<SQLStateClass>
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 |
Modifier and Type | Method and Description |
---|---|
String |
className() |
static SQLStateClass |
fromCode(String code) |
static SQLStateClass |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SQLStateClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SQLStateClass C00_SUCCESSFUL_COMPLETION
public static final SQLStateClass C01_WARNING
public static final SQLStateClass C02_NO_DATA
public static final SQLStateClass C07_DYNAMIC_SQL_ERROR
public static final SQLStateClass C08_CONNECTION_EXCEPTION
public static final SQLStateClass C09_TRIGGERED_ACTION_EXCEPTION
public static final SQLStateClass C0A_FEATURE_NOT_SUPPORTED
public static final SQLStateClass C0D_INVALID_TARGET_TYPE_SPECIFICATION
public static final SQLStateClass C0E_INVALID_SCHEMA_NAME_LIST_SPECIFICATION
public static final SQLStateClass C0F_LOCATOR_EXCEPTION
public static final SQLStateClass C0L_INVALID_GRANTOR
public static final SQLStateClass C0M_INVALID_SQL_INVOKED_PROCEDURE_REFERENCE
public static final SQLStateClass C0P_INVALID_ROLE_SPECIFICATION
public static final SQLStateClass C0S_INVALID_TRANSFORM_GROUP_NAME_SPECIFICATION
public static final SQLStateClass C0T_TARGET_TABLE_DISAGREES_WITH_CURSOR_SPECIFICATION
public static final SQLStateClass C0U_ATTEMPT_TO_ASSIGN_TO_NON_UPDATABLE_COLUMN
public static final SQLStateClass C0V_ATTEMPT_TO_ASSIGN_TO_ORDERING_COLUMN
public static final SQLStateClass C0W_PROHIBITED_STATEMENT_ENCOUNTERED_DURING_TRIGGER_EXECUTION
public static final SQLStateClass C0Z_DIAGNOSTICS_EXCEPTION
public static final SQLStateClass C21_CARDINALITY_VIOLATION
public static final SQLStateClass C22_DATA_EXCEPTION
public static final SQLStateClass C23_INTEGRITY_CONSTRAINT_VIOLATION
public static final SQLStateClass C24_INVALID_CURSOR_STATE
public static final SQLStateClass C25_INVALID_TRANSACTION_STATE
public static final SQLStateClass C26_INVALID_SQL_STATEMENT_NAME
public static final SQLStateClass C27_TRIGGERED_DATA_CHANGE_VIOLATION
public static final SQLStateClass C28_INVALID_AUTHORIZATION_SPECIFICATION
public static final SQLStateClass C2B_DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST
public static final SQLStateClass C2C_INVALID_CHARACTER_SET_NAME
public static final SQLStateClass C2D_INVALID_TRANSACTION_TERMINATION
public static final SQLStateClass C2E_INVALID_CONNECTION_NAME
public static final SQLStateClass C2F_SQL_ROUTINE_EXCEPTION
public static final SQLStateClass C2H_INVALID_COLLATION_NAME
public static final SQLStateClass C30_INVALID_SQL_STATEMENT_IDENTIFIER
public static final SQLStateClass C33_INVALID_SQL_DESCRIPTOR_NAME
public static final SQLStateClass C34_INVALID_CURSOR_NAME
public static final SQLStateClass C35_INVALID_CONDITION_NUMBER
public static final SQLStateClass C36_CURSOR_SENSITIVITY_EXCEPTION
public static final SQLStateClass C38_EXTERNAL_ROUTINE_EXCEPTION
public static final SQLStateClass C39_EXTERNAL_ROUTINE_INVOCATION_EXCEPTION
public static final SQLStateClass C3B_SAVEPOINT_EXCEPTION
public static final SQLStateClass C3C_AMBIGUOUS_CURSOR_NAME
public static final SQLStateClass C3D_INVALID_CATALOG_NAME
public static final SQLStateClass C3F_INVALID_SCHEMA_NAME
public static final SQLStateClass C40_TRANSACTION_ROLLBACK
public static final SQLStateClass C42_SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION
public static final SQLStateClass CHZ_REMOTE_DATABASE_ACCESS
public static final SQLStateClass OTHER
public static final SQLStateClass NONE
public static SQLStateClass[] values()
for (SQLStateClass c : SQLStateClass.values()) System.out.println(c);
public static SQLStateClass 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 className()
public static SQLStateClass fromCode(String code)
Copyright © 2017. All Rights Reserved.