public class CustomSQLExceptionTranslatorRegistrar extends ObjectSE implements InitializingBean
SQLExceptionTranslator インスタンスのレジストリ。| コンストラクターと説明 |
|---|
CustomSQLExceptionTranslatorRegistrar() |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | afterPropertiesSet() |
void | setTranslators(MapSE<StringSE, SQLExceptionTranslator> translators) キーが sql-error-codes.xml ファイルで定義されているデータベース名である必要がある SQLExceptionTranslator 参照のマップの Setter。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic void setTranslators(MapSE<StringSE,SQLExceptionTranslator> translators)
sql-error-codes.xml ファイルで定義されているデータベース名である必要がある SQLExceptionTranslator 参照のマップの Setter。データベース名が一致しない限り、既存のトランスレータはそのまま残り、その時点で新しいトランスレータが既存のトランスレータを置き換えます。
public void afterPropertiesSet()
InitializingBeanBeanFactoryAware、ApplicationContextAware などを満たした後、包含 BeanFactory によって呼び出されます。このメソッドにより、Bean インスタンスは、すべての Bean プロパティが設定されたときに、その全体的な構成の検証と最終的な初期化を実行できます。
InitializingBean の afterPropertiesSet