|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcreme.sql.DefaultSQLExceptionHandler
org.jcreme.sql.SQLExceptionHandlerDB2
This SQLExceptionHandler is specific to DB2. It takes advantage of the vendor codes to determine the type of the exceptions.
Field Summary | |
static int |
DB2_COMMUNICATION_ERROR
As specified in the DB2 documentation. |
static int |
DB2_DEADLOCK_OR_TIMEOUT
As specified in the DB2 documentation. |
static java.lang.String |
DB2_DEADLOCK_WITHOUT_ROLLBACK
As specified in the DB2 documentation. |
static int |
DB2_DISABLED_FUNCTION
As specified in the DB2 documentation. |
static int |
DB2_DISABLED_STATE
As specified in the DB2 documentation. |
Fields inherited from class org.jcreme.sql.DefaultSQLExceptionHandler |
SQL92_CONNECTION_ERROR_SQLSTATE_CLASS, SQL92_SERIALIZATION_FAILURE |
Fields inherited from interface org.jcreme.sql.SQLExceptionHandler |
EXCEPTION_TYPE_LOSS_OF_CONNECTION, EXCEPTION_TYPE_PLAIN_DEADLOCK, EXCEPTION_TYPE_ROLLEDBACK_DEADLOCK, EXCEPTION_TYPE_UNKNOWN, WAS_HANDLED |
Constructor Summary | |
SQLExceptionHandlerDB2()
|
Method Summary | |
static SQLExceptionHandlerDB2 |
getInstance()
Gives access to the unique instance of the class. |
boolean |
isLossOfConnection(java.sql.SQLException e)
This method can be used to test an SQLException. |
boolean |
isPlainDeadLock(java.sql.SQLException e)
This method can be used to test an SQLException. |
Methods inherited from class org.jcreme.sql.DefaultSQLExceptionHandler |
getDeadlockTimeout, getNumberOfTries, handleConnectionClosed, handleException, handleException, handleException, handlePlainDeadLock, handleRolledBackDeadLock, isDeadLock, isLossOfConnection, isPlainDeadLock, isRolledBackDeadLock, isRolledBackDeadLock, isUnknown, setDeadlockTimeout, setNumberOfTries, wasHandled |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jcreme.sql.SQLExceptionHandler |
getDeadlockTimeout, getNumberOfTries, handleException, handleException, handleException, isDeadLock, isLossOfConnection, isPlainDeadLock, isRolledBackDeadLock, isRolledBackDeadLock, isUnknown, setDeadlockTimeout, setNumberOfTries, wasHandled |
Field Detail |
public static final int DB2_COMMUNICATION_ERROR
public static final int DB2_DISABLED_FUNCTION
public static final int DB2_DISABLED_STATE
public static final int DB2_DEADLOCK_OR_TIMEOUT
public static final java.lang.String DB2_DEADLOCK_WITHOUT_ROLLBACK
Constructor Detail |
public SQLExceptionHandlerDB2()
Method Detail |
public static SQLExceptionHandlerDB2 getInstance()
public boolean isLossOfConnection(java.sql.SQLException e)
isLossOfConnection
in interface SQLExceptionHandler
isLossOfConnection
in class DefaultSQLExceptionHandler
e
- an SQLException to test.
public boolean isPlainDeadLock(java.sql.SQLException e)
isPlainDeadLock
in interface SQLExceptionHandler
isPlainDeadLock
in class DefaultSQLExceptionHandler
e
- an SQLException to test.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |