| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static JDBCException | Returns: The converted JDBCException.The converter to use. converter, SQLException The exception to convert. sqlException, String An optional error message. message)Converts the given SQLException into Hibernate's JDBCException hierarchy, as well as performing appropriate logging. |
| public static JDBCException | Returns: The converted JDBCException.The converter to use. converter, SQLException The exception to convert. sqlException, String An optional error message. message, String sql)Converts the given SQLException into Hibernate's JDBCException hierarchy, as well as performing appropriate logging. |
| public static String | |
| public static int | Returns: The error code.The exception from which to extract the SQLState sqlException)For the given SQLException, locates the vendor-specific error code. |
| public static String | Returns: The SQLState code, or null.The exception from which to extract the SQLState sqlException)For the given SQLException, locates the X/Open-compliant SQLState. |
| public static String | Returns: The SQLState class code, or null.The exception from which to extract the SQLState class code sqlException)For the given SQLException, locates the X/Open-compliant SQLState's class code. |
| JDBCExceptionHelper | back to summary |
|---|---|
| private JDBCExceptionHelper() | |
| convert | back to summary |
|---|---|
| public static JDBCException convert(SQLExceptionConverter converter, SQLException sqlException, String message) Converts the given SQLException into Hibernate's JDBCException hierarchy, as well as performing appropriate logging.
| |
| convert | back to summary |
|---|---|
| public 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.
| |
| determineSqlStateClassCode | back to summary |
|---|---|
| public static String determineSqlStateClassCode(String sqlState) | |
| extractErrorCode | back to summary |
|---|---|
| public static int extractErrorCode(SQLException sqlException) For the given SQLException, locates the vendor-specific error code.
| |
| extractSqlState | back to summary |
|---|---|
| public static String extractSqlState(SQLException sqlException) For the given SQLException, locates the X/Open-compliant SQLState.
| |
| extractSqlStateClassCode | back to summary |
|---|---|
| public static String extractSqlStateClassCode(SQLException sqlException) For the given SQLException, locates the X/Open-compliant SQLState's class code.
| |