public class CustomSQLExceptionTranslatorRegistry extends ObjectSE
SQLExceptionTranslator
インスタンスのレジストリ。"sql-error-codes.xml" という名前の構成ファイルに含まれる値に基づいて変換を上書きできます。SQLErrorCodesFactory
修飾子と型 | メソッドと説明 |
---|---|
SQLExceptionTranslator | findTranslatorForDatabase(StringSE dbName) 指定したデータベースのカスタムトランスレータを検索します。 |
static CustomSQLExceptionTranslatorRegistry | getInstance() シングルトンインスタンスを返します。 |
void | registerTranslator(StringSE dbName, SQLExceptionTranslator translator) 指定したデータベース名の新しいカスタムトランスレータを登録します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public static CustomSQLExceptionTranslatorRegistry getInstance()
public void registerTranslator(StringSE dbName, SQLExceptionTranslator translator)
dbName
- データベース名 translator
- カスタムトランスレータ @Nullable public SQLExceptionTranslator findTranslatorForDatabase(StringSE dbName)
dbName
- データベース名 null