类的使用
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中的方法 修饰符和类型 方法 说明 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.参数类型为SQLErrorCodes的org.springframework.jdbc.support中的方法 修饰符和类型 方法 说明 voidSQLErrorCodeSQLExceptionTranslator. 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.