Uses of Class
org.springframework.jdbc.support.SQLErrorCodes
Package
Description
Support classes for the JDBC framework, used by the classes in the
jdbc.core and jdbc.object packages.
-
Uses of SQLErrorCodes in org.springframework.jdbc.support
Modifier and TypeMethodDescriptionSQLErrorCodesFactory.getErrorCodes
(String databaseName) Return theSQLErrorCodes
instance for the given database.SQLErrorCodesFactory.getErrorCodes
(DataSource dataSource) ReturnSQLErrorCodes
for the givenDataSource
, evaluating "databaseProductName" from theDatabaseMetaData
, or an empty error codes instance if noSQLErrorCodes
were found.SQLErrorCodeSQLExceptionTranslator.getSqlErrorCodes()
Return the error codes used by this translator.SQLErrorCodesFactory.registerDatabase
(DataSource dataSource, String databaseName) Associate the specified database name with the givenDataSource
.SQLErrorCodesFactory.resolveErrorCodes
(DataSource dataSource) ReturnSQLErrorCodes
for the givenDataSource
, evaluating "databaseProductName" from theDatabaseMetaData
, ornull
if case of a JDBC meta-data access problem.SQLErrorCodesFactory.unregisterDatabase
(DataSource dataSource) Clear the cache for the specifiedDataSource
, if registered.Modifier and TypeMethodDescriptionvoid
SQLErrorCodeSQLExceptionTranslator.setSqlErrorCodes
(SQLErrorCodes sec) Set custom error codes to be used for translation.ModifierConstructorDescriptionCreate an SQLErrorCode translator given these error codes.