@NonNullApi @NonNullFields package 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.
ClassDescriptionBase class for
SQLExceptionTranslatorimplementations that allow for fallback to some other
SQLExceptionTranslator.JavaBean for holding custom JDBC error codes translation for a particular database.Registry for custom
SQLExceptionTranslatorinstances for specific databases.Registry for custom
SQLExceptionTranslatorinstances associated with specific databases allowing for overriding translation based on values contained in the configuration file named "sql-error-codes.xml".A callback interface used by the JdbcUtils class.Bean that checks if a database has already started up.The standard implementation of the
KeyHolderinterface, to be used for holding auto-generated keys (as potentially returned by JDBC insert statements).Base class for
JdbcTemplateand other JDBC-accessing DAO helpers, defining common properties such as DataSource and exception translator.
JdbcAccessor-aligned subclass of the plain
DataSourceTransactionManager, adding common JDBC exception translation for the commit and rollback step.Generic utility methods for working with JDBC.Interface for retrieving keys, typically used for auto-generated keys as potentially returned by JDBC insert statements.Exception indicating that something went wrong during JDBC meta-data lookup.JavaBean for holding JDBC error codes for a particular database.Factory for creating
SQLErrorCodesbased on the "databaseProductName" taken from the
SQLExceptionTranslatorthat analyzes vendor-specific error codes.
SQLExceptionTranslatorimplementation which analyzes the specific
SQLExceptionsubclass thrown by the JDBC driver.Strategy interface for translating between
SQLExceptionsand Spring's data access strategy-agnostic
SQLExceptionTranslatorimplementation that analyzes the SQL state in the
SQLExceptionbased on the first two digits (the SQL state "class").Simple interface for complex types to be set as statement parameters.