Package org.springframework.jdbc.support
Class CustomSQLExceptionTranslatorRegistrar
java.lang.Object
org.springframework.jdbc.support.CustomSQLExceptionTranslatorRegistrar
- All Implemented Interfaces:
- InitializingBean
Registry for custom 
SQLExceptionTranslator instances for specific databases.- Since:
- 3.1.1
- Author:
- Thomas Risberg
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidInvoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.voidsetTranslators(Map<String, SQLExceptionTranslator> translators) Setter for a Map ofSQLExceptionTranslatorreferences where the key must be the database name as defined in thesql-error-codes.xmlfile.
- 
Constructor Details- 
CustomSQLExceptionTranslatorRegistrarpublic CustomSQLExceptionTranslatorRegistrar()
 
- 
- 
Method Details- 
setTranslatorsSetter for a Map ofSQLExceptionTranslatorreferences where the key must be the database name as defined in thesql-error-codes.xmlfile.Note that any existing translators will remain unless there is a match in the database name, at which point the new translator will replace the existing one. 
- 
afterPropertiesSetpublic void afterPropertiesSet()Description copied from interface:InitializingBeanInvoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set. - Specified by:
- afterPropertiesSetin interface- InitializingBean
 
 
-