クラス SqlMapperContext


  • public class SqlMapperContext
    extends Object
    SqlMapperの設定情報を保持します。
    バージョン:
    0.3
    作成者:
    T.TSUCHIE
    • コンストラクタの詳細

      • SqlMapperContext

        public SqlMapperContext()
    • メソッドの詳細

      • txRequiresNew

        public org.springframework.transaction.support.TransactionTemplate txRequiresNew()
        トランザクションの伝搬タイプが TransactionDefinition.PROPAGATION_REQUIRES_NEW のトランザクションテンプレートを作成します。

        ID生成用のトランザクションテンプレートとして使用します。

        戻り値:
        トランザクションテンプレート。
        導入されたバージョン:
        0.3
      • getNamingRule

        public NamingRule getNamingRule()
        テーブル、カラムなどの命名規則。
      • getMessageFormatter

        public com.github.mygreen.messageformatter.MessageFormatter getMessageFormatter()
        エラーメッセージなどのフォーマッター。
      • getDialect

        public Dialect getDialect()
        RDMSごとの方言。
      • getEntityMetaFactory

        public EntityMetaFactory getEntityMetaFactory()
        エンティティのメタ情報の作成処理。
      • getStoredParamMetaFactory

        public StoredParamMetaFactory getStoredParamMetaFactory()
        ストアドプロシージャ/ファンクションのパラメータのメタ情報の作成処理。
      • getValueTypeRegistry

        public ValueTypeRegistry getValueTypeRegistry()
        Java ⇔ SQL の相互変換処理を管理。
      • getDataSource

        public DataSource getDataSource()
        接続先DBのデータソース。
      • getJdbcTemplateProperties

        public JdbcTemplateProperties getJdbcTemplateProperties()
        JdbcTemplate の初期値。
      • getTransactionManager

        public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
        トランザクションマネージャ。

        主キー生成時のトランザクション設定に使用します。

      • getApplicationEventPublisher

        public org.springframework.context.ApplicationEventPublisher getApplicationEventPublisher()
        各SQL実行時のイベントを配信する機能
      • getSqlTemplateEngine

        public com.github.mygreen.splate.SqlTemplateEngine getSqlTemplateEngine()
        SQLテンプレートエンジン
      • setNamingRule

        public void setNamingRule​(NamingRule namingRule)
        テーブル、カラムなどの命名規則。
      • setMessageFormatter

        public void setMessageFormatter​(com.github.mygreen.messageformatter.MessageFormatter messageFormatter)
        エラーメッセージなどのフォーマッター。
      • setDialect

        public void setDialect​(Dialect dialect)
        RDMSごとの方言。
      • setEntityMetaFactory

        public void setEntityMetaFactory​(EntityMetaFactory entityMetaFactory)
        エンティティのメタ情報の作成処理。
      • setStoredParamMetaFactory

        public void setStoredParamMetaFactory​(StoredParamMetaFactory storedParamMetaFactory)
        ストアドプロシージャ/ファンクションのパラメータのメタ情報の作成処理。
      • setValueTypeRegistry

        public void setValueTypeRegistry​(ValueTypeRegistry valueTypeRegistry)
        Java ⇔ SQL の相互変換処理を管理。
      • setDataSource

        public void setDataSource​(DataSource dataSource)
        接続先DBのデータソース。
      • setJdbcTemplateProperties

        public void setJdbcTemplateProperties​(JdbcTemplateProperties jdbcTemplateProperties)
        JdbcTemplate の初期値。
      • setTransactionManager

        public void setTransactionManager​(org.springframework.transaction.PlatformTransactionManager transactionManager)
        トランザクションマネージャ。

        主キー生成時のトランザクション設定に使用します。

      • setApplicationEventPublisher

        public void setApplicationEventPublisher​(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
        各SQL実行時のイベントを配信する機能
      • setSqlTemplateEngine

        public void setSqlTemplateEngine​(com.github.mygreen.splate.SqlTemplateEngine sqlTemplateEngine)
        SQLテンプレートエンジン