Uses of Class
org.springframework.jdbc.support.SQLErrorCodes
Packages that use SQLErrorCodes Package Description org.springframework.jdbc.support 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
Methods in org.springframework.jdbc.support that return SQLErrorCodes Modifier and Type Method Description SQLErrorCodesSQLErrorCodesFactory. getErrorCodes(String databaseName)Return theSQLErrorCodesinstance for the given database.SQLErrorCodesSQLErrorCodesFactory. getErrorCodes(DataSource dataSource)ReturnSQLErrorCodesfor the givenDataSource, evaluating "databaseProductName" from theDatabaseMetaData, or an empty error codes instance if noSQLErrorCodeswere found.SQLErrorCodesSQLErrorCodeSQLExceptionTranslator. getSqlErrorCodes()Return the error codes used by this translator.SQLErrorCodesSQLErrorCodesFactory. registerDatabase(DataSource dataSource, String databaseName)Associate the specified database name with the givenDataSource.SQLErrorCodesSQLErrorCodesFactory. resolveErrorCodes(DataSource dataSource)ReturnSQLErrorCodesfor the givenDataSource, evaluating "databaseProductName" from theDatabaseMetaData, ornullif case of a JDBC meta-data access problem.SQLErrorCodesSQLErrorCodesFactory. unregisterDatabase(DataSource dataSource)Clear the cache for the specifiedDataSource, if registered.Methods in org.springframework.jdbc.support with parameters of type SQLErrorCodes Modifier and Type Method Description voidSQLErrorCodeSQLExceptionTranslator. setSqlErrorCodes(SQLErrorCodes sec)Set custom error codes to be used for translation.Constructors in org.springframework.jdbc.support with parameters of type SQLErrorCodes Constructor Description SQLErrorCodeSQLExceptionTranslator(SQLErrorCodes sec)Create an SQLErrorCode translator given these error codes.