|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.exception.JDBCExceptionHelper
public final class JDBCExceptionHelper
Implementation of JDBCExceptionHelper.
Method Summary | |
---|---|
static JDBCException |
convert(SQLExceptionConverter converter,
SQLException sqlException,
String message)
Converts the given SQLException into Hibernate's JDBCException hierarchy, as well as performing appropriate logging. |
static JDBCException |
convert(SQLExceptionConverter converter,
SQLException sqlException,
String message,
String sql)
Converts the given SQLException into Hibernate's JDBCException hierarchy, as well as performing appropriate logging. |
static String |
determineSqlStateClassCode(String sqlState)
|
static int |
extractErrorCode(SQLException sqlException)
For the given SQLException, locates the vendor-specific error code. |
static String |
extractSqlState(SQLException sqlException)
For the given SQLException, locates the X/Open-compliant SQLState. |
static String |
extractSqlStateClassCode(SQLException sqlException)
For the given SQLException, locates the X/Open-compliant SQLState's class code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static JDBCException convert(SQLExceptionConverter converter, SQLException sqlException, String message)
converter
- The converter to use.sqlException
- The exception to convert.message
- An optional error message.
public static JDBCException convert(SQLExceptionConverter converter, SQLException sqlException, String message, String sql)
converter
- The converter to use.sqlException
- The exception to convert.message
- An optional error message.
public static int extractErrorCode(SQLException sqlException)
sqlException
- The exception from which to extract the SQLState
public static String extractSqlState(SQLException sqlException)
sqlException
- The exception from which to extract the SQLState
public static String extractSqlStateClassCode(SQLException sqlException)
sqlException
- The exception from which to extract the SQLState class code
public static String determineSqlStateClassCode(String sqlState)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |