public class SQLStates extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SQLStates.SQLStateClass |
Modifier and Type | Field and Description |
---|---|
static SQLStates.SQLStateClass |
CLASS_CONNECTION_EXCEPTION
Identifies the SQLState class Connection Exception (08).
|
static SQLStates.SQLStateClass |
CLASS_INVALID_AUTHORIZATION_SPECIFICATION
Identifies the SQLState class Invalid Authorization Specification (28).
|
static SQLStates.SQLStateClass |
CLASS_USAGE_ERROR |
static String |
CONNECTION_EXCEPTION_CONNECTION_DOES_NOT_EXIST
Connection does not exist (SQL-99 08003)
|
static String |
CONNECTION_EXCEPTION_CONNECTION_FAILURE
Connection failure (SQL-99 08006)
|
static String |
CONNECTION_EXCEPTION_CONNECTION_NAME_IN_USE
Connection name in use (SQL-99 08002)
|
static String |
CONNECTION_EXCEPTION_NO_SUBCLASS
Connection Exception with no subclass (SQL-99 08000)
|
static String |
CONNECTION_EXCEPTION_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION
SQL-client unable to establish SQL-connection (SQL-99 08001)
|
static String |
CONNECTION_EXCEPTION_SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION
SQL-server rejected establishment of SQL-connection (SQL-99 08004)
|
static String |
CONNECTION_EXCEPTION_STALE_CONNECTION
Connection is stale and should no longer be used.
|
static String |
CONNECTION_EXCEPTION_TRANSACTION_RESOLUTION_UNKNOWN
Transaction resolution unknown (SQL-99 08007)
|
static String |
DEFAULT
External routine exception.
|
static String |
INVALID_AUTHORIZATION_SPECIFICATION_NO_SUBCLASS
Invalid authorization specification with no subclass (SQL-99 28000)
|
static String |
QUERY_CANCELED |
static String |
SUCESS |
static String |
USAGE_ERROR
General query execution error
|
static String |
VIRTUAL_PROCEDURE_ERROR
Error raised by ERROR instruction in virtual procedure.
|
Constructor and Description |
---|
SQLStates() |
Modifier and Type | Method and Description |
---|---|
static boolean |
belongsToClass(String sqlStateCode,
SQLStates.SQLStateClass sqlStateClass) |
static SQLStates.SQLStateClass |
getClass(String sqlStateCode) |
static boolean |
isSystemErrorState(String sqlStateCode) |
static boolean |
isUsageErrorState(String sqlStateCode) |
public static final SQLStates.SQLStateClass CLASS_CONNECTION_EXCEPTION
public static final String CONNECTION_EXCEPTION_NO_SUBCLASS
public static final String CONNECTION_EXCEPTION_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION
public static final String CONNECTION_EXCEPTION_CONNECTION_NAME_IN_USE
public static final String CONNECTION_EXCEPTION_CONNECTION_DOES_NOT_EXIST
public static final String CONNECTION_EXCEPTION_SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION
public static final String CONNECTION_EXCEPTION_CONNECTION_FAILURE
public static final String CONNECTION_EXCEPTION_TRANSACTION_RESOLUTION_UNKNOWN
public static final String CONNECTION_EXCEPTION_STALE_CONNECTION
The SQLState subclass S01 is an implementation-specified condition and conforms to the subclass DataDirect uses for SocketExceptions.
public static final String QUERY_CANCELED
public static final SQLStates.SQLStateClass CLASS_INVALID_AUTHORIZATION_SPECIFICATION
public static final String INVALID_AUTHORIZATION_SPECIFICATION_NO_SUBCLASS
public static final String DEFAULT
public static final String SUCESS
public static final SQLStates.SQLStateClass CLASS_USAGE_ERROR
public static final String USAGE_ERROR
public static final String VIRTUAL_PROCEDURE_ERROR
public static boolean isSystemErrorState(String sqlStateCode)
public static boolean isUsageErrorState(String sqlStateCode)
public static boolean belongsToClass(String sqlStateCode, SQLStates.SQLStateClass sqlStateClass)
public static SQLStates.SQLStateClass getClass(String sqlStateCode)
Copyright © 2018 JBoss by Red Hat. All rights reserved.