|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.exception.ErrorCodeConverter
A SQLExceptionConverter implementation which performs converion based on the vendor specific ErrorCode. This is just intended really as just a base class for converters which know the interpretation of vendor-specific codes.
Constructor Summary | |
ErrorCodeConverter(ViolatedConstraintNameExtracter extracter)
|
Method Summary | |
JDBCException |
convert(SQLException sqlException,
String message)
Convert the given SQLException into Hibernate's JDBCException hierarchy. |
protected int[] |
getConnectionErrorCodes()
The error codes representing issues with a connection. |
protected int[] |
getIntegrityViolationErrorCodes()
The error codes representing various types of database integrity issues. |
protected int[] |
getLockAcquisitionErrorCodes()
|
protected int[] |
getSQLGrammarErrorCodes()
The error codes representing SQL grammar issues. |
protected JDBCException |
handledNonSpecificException(SQLException sqlException,
String message)
Handle an exception not converted to a specific type based on the built-in checks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ErrorCodeConverter(ViolatedConstraintNameExtracter extracter)
Method Detail |
protected int[] getSQLGrammarErrorCodes()
protected int[] getConnectionErrorCodes()
protected int[] getIntegrityViolationErrorCodes()
protected int[] getLockAcquisitionErrorCodes()
public JDBCException convert(SQLException sqlException, String message)
convert
in interface SQLExceptionConverter
sqlException
- The SQLException to be converted.message
- An optional error message.
ConstraintViolationException, JDBCConnectionException, SQLGrammarException, LockAcquisitionException
protected JDBCException handledNonSpecificException(SQLException sqlException, String message)
sqlException
- The exception to be handled.message
- An optional message
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |