程序包 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.
接口概要 接口 说明 DatabaseMetaDataCallback<T> 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 Strategy interface for translating betweenSQLExceptionsand Spring's data access strategy-agnosticDataAccessExceptionhierarchy.SqlValue Simple interface for complex types to be set as statement parameters.类概要 类 说明 AbstractFallbackSQLExceptionTranslator Base class forSQLExceptionTranslatorimplementations that allow for fallback to some otherSQLExceptionTranslator.CustomSQLErrorCodesTranslation JavaBean for holding custom JDBC error codes translation for a particular database.CustomSQLExceptionTranslatorRegistrar Registry for customSQLExceptionTranslatorinstances for specific databases.CustomSQLExceptionTranslatorRegistry Registry for customSQLExceptionTranslatorinstances associated with specific databases allowing for overriding translation based on values contained in the configuration file named "sql-error-codes.xml".DatabaseStartupValidator Bean that checks if a database has already started up.GeneratedKeyHolder The standard implementation of theKeyHolderinterface, to be used for holding auto-generated keys (as potentially returned by JDBC insert statements).JdbcAccessor Base class forJdbcTemplateand other JDBC-accessing DAO helpers, defining common properties such as 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 creatingSQLErrorCodesbased on the "databaseProductName" taken from theDatabaseMetaData.SQLErrorCodeSQLExceptionTranslator Implementation ofSQLExceptionTranslatorthat analyzes vendor-specific error codes.SQLExceptionSubclassTranslator SQLExceptionTranslatorimplementation which analyzes the specificSQLExceptionsubclass thrown by the JDBC driver.SQLStateSQLExceptionTranslator SQLExceptionTranslatorimplementation that analyzes the SQL state in theSQLExceptionbased on the first two digits (the SQL state "class").异常错误概要 异常错误 说明 MetaDataAccessException Exception indicating that something went wrong during JDBC meta-data lookup.