SQLExceptionTranslator implementation which analyzes the specific
java.sql.SQLException subclass thrown by the JDBC driver.
Falls back to a standard SQLStateSQLExceptionTranslator if the JDBC
driver does not actually expose JDBC 4 compliant SQLException subclasses.
This translator serves as the default translator as of 6.0.
java.sql.SQLTransientException , java.sql.SQLNonTransientException , java.sql.SQLRecoverableException
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected DataAccessException | doTranslate(String
readable text describing the task being attempted task, String the SQL query or update that caused the problem (if known) sql, SQLException the offending ex)SQLExceptionImplements abstract org. |
| SQLExceptionSubclassTranslator | back to summary |
|---|---|
| public SQLExceptionSubclassTranslator() | |
| doTranslate | back to summary |
|---|---|
| protected DataAccessException doTranslate(String task, String sql, SQLException ex) Implements abstract org. Doc from org. Template method for actually translating the given exception. The passed-in arguments will have been pre-checked. Furthermore, this method
is allowed to return
| |