|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.jdbc.support.CustomSQLExceptionTranslatorRegistry
public class 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".
SQLErrorCodesFactory| Method Summary | |
|---|---|
SQLExceptionTranslator |
findTranslatorForDatabase(String dbName)
Find a custom translator for the specified database. |
static CustomSQLExceptionTranslatorRegistry |
getInstance()
Return the singleton instance. |
void |
registerTranslator(String dbName,
SQLExceptionTranslator translator)
Register a new custom translator for the specified database name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static CustomSQLExceptionTranslatorRegistry getInstance()
public void registerTranslator(String dbName,
SQLExceptionTranslator translator)
dbName - the database nametranslator - the custom translatorpublic SQLExceptionTranslator findTranslatorForDatabase(String dbName)
dbName - the database name
null if none found
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||