|
spring-jdbc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.jdbc.support.CustomSQLExceptionTranslatorRegistrar
public class CustomSQLExceptionTranslatorRegistrar
Registry for registering custom SQLExceptionTranslator
instances for specific databases.
| Constructor Summary | |
|---|---|
CustomSQLExceptionTranslatorRegistrar()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
setTranslators(java.util.Map<java.lang.String,SQLExceptionTranslator> translators)
Setter for a Map of SQLExceptionTranslator references where the key must
be the database name as defined in the sql-error-codes.xml file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomSQLExceptionTranslatorRegistrar()
| Method Detail |
|---|
public void setTranslators(java.util.Map<java.lang.String,SQLExceptionTranslator> translators)
SQLExceptionTranslator references where the key must
be the database name as defined in the sql-error-codes.xml file.
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.
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
|
spring-jdbc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||