|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to be implemented by classes that can translate between SQLExceptions and our data access strategy-agnostic org.springframework.dao.DataAccessException.
Implementations can be generic (for example, using SQLState codes for JDBC) or proprietary (for example, using Oracle error codes) for greater precision.
DataAccessException
Method Summary | |
DataAccessException |
translate(java.lang.String task,
java.lang.String sql,
java.sql.SQLException sqlex)
Translate the given SQL exception into a generic data access exception. |
Method Detail |
public DataAccessException translate(java.lang.String task, java.lang.String sql, java.sql.SQLException sqlex)
task
- readable text describing the task being attemptedsql
- SQL query or update that caused the problem.
May be null.sqlex
- SQLException encountered by JDBC implementation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |