org.springframework.jdbc.support |
Support classes for the JDBC framework, used by the classes in the
jdbc.core and jdbc.object packages. Provides a translator from
SQLExceptions Spring's generic DataAccessExceptions.
Can be used independently, for example in custom JDBC access code,
or in JDBC-based O/R mapping layers.
|
Java Source File Name | Type | Comment |
CustomSQLErrorCodesTranslation.java | Class | JavaBean for holding Custom JDBC Error Codes translation for a particular
database. |
DatabaseMetaDataCallback.java | Interface | A callback interface used by the JdbcUtils class. |
DatabaseStartupValidator.java | Class | Bean that checks if a database has already started up. |
GeneratedKeyHolder.java | Class | Default implementation of the
KeyHolder interface, to be used for
holding auto-generated keys (as potentially returned by JDBC insert statements). |
JdbcAccessor.java | Class | Base class for
org.springframework.jdbc.core.JdbcTemplate and
other JDBC-accessing DAO helpers, defining common properties such as
DataSource and exception translator. |
JdbcUtils.java | Class | Generic utility methods for working with JDBC. |
KeyHolder.java | Interface | Interface for retrieving keys, typically used for auto-generated keys
as potentially returned by JDBC insert statements.
Implementations of this interface can hold any number of keys.
In the general case, the keys are returned as a List containing one Map
for each row of keys.
Most applications only use on key per row and process only one row at a
time in an insert statement. |
MetaDataAccessException.java | Class | Exception indicating that something went wrong during JDBC metadata lookup.
This is a checked exception since we want it to be caught, logged and
handled rather than cause the application to fail. |
SQLErrorCodes.java | Class | JavaBean for holding JDBC error codes for a particular database. |
SQLErrorCodesFactory.java | Class | Factory for creating
SQLErrorCodes based on the
"databaseProductName" taken from the
java.sql.DatabaseMetaData . |
SQLErrorCodeSQLExceptionTranslator.java | Class | Implementation of SQLExceptionTranslator that analyzes vendor-specific error codes.
More precise than an implementation based on SQL state, but vendor-specific.
This class applies the following matching rules:
- Try custom translation implemented by any subclass.
|
SQLExceptionTranslator.java | Interface | Strategy interface for translating between
SQLException SQLExceptions and Spring's data access strategy-agnostic
DataAccessException hierarchy. |
SQLStateSQLExceptionTranslator.java | Class | SQLExceptionTranslator implementation that analyzes the SQL state
in the
SQLException . |