|
|||||||||
| Home >> All >> org >> springframework >> jdbc >> [ support overview ] | PREV PACKAGE NEXT PACKAGE | ||||||||
Package org.springframework.jdbc.support
The classes in this package make JDBC easier to use and reduce the likelihood of common errors.
See:
Description
| Interface Summary | |
| DatabaseMetaDataCallback | A callback interface used by the JdbcUtils class. |
| KeyHolder | Interface for retrieving keys, typically used for auto-generated keys as potentially returned by JDBC insert statements. |
| SQLExceptionTranslator | Interface to be implemented by classes that can translate between SQLExceptions and our data access strategy-agnostic org.springframework.dao.DataAccessException. |
| Class Summary | |
| CustomSQLErrorCodesTranslation | JavaBean for holding Custom JDBC Error Codes translation for a particular database. |
| DatabaseStartupValidator | Bean that checks if a database has already started up. |
| GeneratedKeyHolder | An implementation of the KeyHolder interface, to be used for holding auto-generated keys as potentially returned by JDBC insert statements. |
| JdbcAccessor | Base class for JdbcTemplate and other JDBC-accessing DAO helpers, defining common properties like DataSource and exception translator. |
| JdbcUtils | Generic utility methods for working with JDBC. |
| SQLErrorCodes | JavaBean for holding JDBC error codes for a particular database. |
| SQLErrorCodesFactory | Factory for creating SQLErrorCodes based on the "databaseProductName" taken from the DatabaseMetaData. |
| SQLErrorCodeSQLExceptionTranslator | Implementation of SQLExceptionTranslator that uses specific vendor codes. |
| SQLStateSQLExceptionTranslator | Implementation of SQLExceptionTranslator that uses the SQLState code in the SQLException. |
| Exception Summary | |
| MetaDataAccessException | Exception indicating that something went wrong during JDBC metadata lookup. |
Package org.springframework.jdbc.support Description
The classes in this package make JDBC easier to use and reduce the likelihood of common errors. In particular, they:
- Simplify error handling, avoiding the need for try/catch/final blocks in application code.
- Present exceptions to application code in a generic hierarchy of unchecked exceptions, enabling applications to catch data access exceptions without being dependent on JDBC, and to ignore fatal exceptions there is no value in catching.
- Allow the implementation of error handling to be modified to target different RDBMSes without introducing proprietary dependencies into application code.
This package and related packages are discussed in Chapter 9 of Expert One-On-One J2EE Design and Development by Rod Johnson (Wrox, 2002).
|
|||||||||
| Home >> All >> org >> springframework >> jdbc >> [ support overview ] | PREV PACKAGE NEXT PACKAGE | ||||||||