クラス SqlMapperContext
- java.lang.Object
-
- com.github.mygreen.sqlmapper.core.SqlMapperContext
-
public class SqlMapperContext extends Object
SqlMapperの設定情報を保持します。- バージョン:
- 0.3
- 作成者:
- T.TSUCHIE
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 SqlMapperContext()
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 org.springframework.context.ApplicationEventPublishergetApplicationEventPublisher()各SQL実行時のイベントを配信する機能DataSourcegetDataSource()接続先DBのデータソース。DialectgetDialect()RDMSごとの方言。EntityMetaFactorygetEntityMetaFactory()エンティティのメタ情報の作成処理。JdbcTemplatePropertiesgetJdbcTemplateProperties()JdbcTemplateの初期値。com.github.mygreen.messageformatter.MessageFormattergetMessageFormatter()エラーメッセージなどのフォーマッター。NamingRulegetNamingRule()テーブル、カラムなどの命名規則。com.github.mygreen.splate.SqlTemplateEnginegetSqlTemplateEngine()SQLテンプレートエンジンStoredParamMetaFactorygetStoredParamMetaFactory()ストアドプロシージャ/ファンクションのパラメータのメタ情報の作成処理。org.springframework.transaction.PlatformTransactionManagergetTransactionManager()トランザクションマネージャ。ValueTypeRegistrygetValueTypeRegistry()Java ⇔ SQL の相互変換処理を管理。voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)各SQL実行時のイベントを配信する機能voidsetDataSource(DataSource dataSource)接続先DBのデータソース。voidsetDialect(Dialect dialect)RDMSごとの方言。voidsetEntityMetaFactory(EntityMetaFactory entityMetaFactory)エンティティのメタ情報の作成処理。voidsetJdbcTemplateProperties(JdbcTemplateProperties jdbcTemplateProperties)JdbcTemplateの初期値。voidsetMessageFormatter(com.github.mygreen.messageformatter.MessageFormatter messageFormatter)エラーメッセージなどのフォーマッター。voidsetNamingRule(NamingRule namingRule)テーブル、カラムなどの命名規則。voidsetSqlTemplateEngine(com.github.mygreen.splate.SqlTemplateEngine sqlTemplateEngine)SQLテンプレートエンジンvoidsetStoredParamMetaFactory(StoredParamMetaFactory storedParamMetaFactory)ストアドプロシージャ/ファンクションのパラメータのメタ情報の作成処理。voidsetTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)トランザクションマネージャ。voidsetValueTypeRegistry(ValueTypeRegistry valueTypeRegistry)Java ⇔ SQL の相互変換処理を管理。org.springframework.transaction.support.TransactionTemplatetxRequiresNew()トランザクションの伝搬タイプがTransactionDefinition.PROPAGATION_REQUIRES_NEWのトランザクションテンプレートを作成します。
-
-
-
メソッドの詳細
-
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テンプレートエンジン
-
-