Top Description Interfaces Classes
module spring.jdbc

Package org.springframework.jdbc.support

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

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.

Interface Summary

Modifier and TypeInterface and Description
public interface
DatabaseMetaDataCallback<
the result type
T
>

A callback interface used by the JdbcUtils class.

public interface
KeyHolder

Interface for retrieving keys, typically used for auto-generated keys as potentially returned by JDBC insert statements.

public interface
SQLExceptionTranslator

Strategy interface for translating between SQLExceptions and Spring's data access strategy-agnostic DataAccessException hierarchy.

public interface
SqlValue

Simple interface for complex types to be set as statement parameters.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractFallbackSQLExceptionTranslator

Base class for SQLExceptionTranslator implementations that allow for a fallback to some other SQLExceptionTranslator, as well as for custom overrides.

public class
CustomSQLErrorCodesTranslation

JavaBean for holding custom JDBC error codes translation for a particular database.

public class
CustomSQLExceptionTranslatorRegistrar

Registry for custom SQLExceptionTranslator instances for specific databases.

public class
CustomSQLExceptionTranslatorRegistry

Registry for custom org.springframework.jdbc.support.SQLExceptionTranslator instances associated with specific databases allowing for overriding translation based on values contained in the configuration file named "sql-error-codes.xml".

public class
DatabaseStartupValidator

Bean that checks if a database has already started up.

public class
GeneratedKeyHolder

The standard implementation of the KeyHolder interface, to be used for holding auto-generated keys (as potentially returned by JDBC insert statements).

public abstract class
JdbcAccessor

Base class for org.springframework.jdbc.core.JdbcTemplate and other JDBC-accessing DAO helpers, defining common properties such as DataSource and exception translator.

public class
JdbcTransactionManager

JdbcAccessor-aligned subclass of the plain DataSourceTransactionManager, adding common JDBC exception translation for the commit and rollback step.

public abstract class
JdbcUtils

Generic utility methods for working with JDBC.

public class
MetaDataAccessException

Exception indicating that something went wrong during JDBC meta-data lookup.

public class
SqlArrayValue

Common SqlValue implementation for JDBC Array creation based on the JDBC 4 java.sql.Connection#createArrayOf method.

public class
SQLErrorCodes

JavaBean for holding JDBC error codes for a particular database.

public class
SQLErrorCodesFactory

Factory for creating SQLErrorCodes based on the "databaseProductName" taken from the java.sql.DatabaseMetaData.

public class
SQLErrorCodeSQLExceptionTranslator

Implementation of SQLExceptionTranslator that analyzes vendor-specific error codes.

public class
SQLExceptionSubclassTranslator

SQLExceptionTranslator implementation which analyzes the specific java.sql.SQLException subclass thrown by the JDBC driver.

public class
SQLStateSQLExceptionTranslator

SQLExceptionTranslator implementation that analyzes the SQL state in the SQLException based on the first two digits (the SQL state "class").