Package org.springframework.jdbc.support
Class CustomSQLExceptionTranslatorRegistry
java.lang.Object
org.springframework.jdbc.support.CustomSQLExceptionTranslatorRegistry
Registry for custom 
SQLExceptionTranslator instances associated with
 specific databases allowing for overriding translation based on values
 contained in the configuration file named "sql-error-codes.xml".- Since:
- 3.1.1
- Author:
- Thomas Risberg
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionfindTranslatorForDatabase(String dbName) Find a custom translator for the specified database.Return the singleton instance.voidregisterTranslator(String dbName, SQLExceptionTranslator translator) Register a new custom translator for the specified database name.
- 
Method Details- 
getInstanceReturn the singleton instance.
- 
registerTranslatorRegister a new custom translator for the specified database name.- Parameters:
- dbName- the database name
- translator- the custom translator
 
- 
findTranslatorForDatabaseFind a custom translator for the specified database.- Parameters:
- dbName- the database name
- Returns:
- the custom translator, or nullif none found
 
 
-