类的使用
org.springframework.jdbc.support.SQLErrorCodes
使用SQLErrorCodes的程序包 程序包 说明 org.springframework.jdbc.support Support classes for the JDBC framework, used by the classes in the jdbc.core and jdbc.object packages.org.springframework.jdbc.support中SQLErrorCodes的使用
返回SQLErrorCodes的org.springframework.jdbc.support中的方法 修饰符和类型 方法 说明 SQLErrorCodes
SQLErrorCodesFactory. getErrorCodes(String databaseName)
Return theSQLErrorCodes
instance for the given database.SQLErrorCodes
SQLErrorCodesFactory. getErrorCodes(DataSource dataSource)
ReturnSQLErrorCodes
for the givenDataSource
, evaluating "databaseProductName" from theDatabaseMetaData
, or an empty error codes instance if noSQLErrorCodes
were found.SQLErrorCodes
SQLErrorCodeSQLExceptionTranslator. getSqlErrorCodes()
Return the error codes used by this translator.SQLErrorCodes
SQLErrorCodesFactory. registerDatabase(DataSource dataSource, String databaseName)
Associate the specified database name with the givenDataSource
.SQLErrorCodes
SQLErrorCodesFactory. resolveErrorCodes(DataSource dataSource)
ReturnSQLErrorCodes
for the givenDataSource
, evaluating "databaseProductName" from theDatabaseMetaData
, ornull
if case of a JDBC meta-data access problem.SQLErrorCodes
SQLErrorCodesFactory. unregisterDatabase(DataSource dataSource)
Clear the cache for the specifiedDataSource
, if registered.参数类型为SQLErrorCodes的org.springframework.jdbc.support中的方法 修饰符和类型 方法 说明 void
SQLErrorCodeSQLExceptionTranslator. setSqlErrorCodes(SQLErrorCodes sec)
Set custom error codes to be used for translation.参数类型为SQLErrorCodes的org.springframework.jdbc.support中的构造器 构造器 说明 SQLErrorCodeSQLExceptionTranslator(SQLErrorCodes sec)
Create an SQLErrorCode translator given these error codes.