クラス BeanPropertyItemSqlParameterSourceProvider<T>
java.lang.ObjectSE
org.springframework.batch.item.database.BeanPropertyItemSqlParameterSourceProvider<T>
- 実装されたすべてのインターフェース:
ItemSqlParameterSourceProvider<T>
public class BeanPropertyItemSqlParameterSourceProvider<T>
extends ObjectSE
implements ItemSqlParameterSourceProvider<T>
SQL ステートメントのパラメーターに使用される名前に対応する JavaBean プロパティがアイテムにある場合、BeanPropertySqlParameterSource を提供するための便利な実装。
- 導入:
- 2.0
- 作成者:
- Thomas Risberg
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明org.springframework.jdbc.core.namedparam.SqlParameterSource
createSqlParameterSource
(T item) 指定されたアイテムの値に基づいて、BeanPropertySqlParameterSource
にパラメーター値を指定します。
コンストラクターの詳細
BeanPropertyItemSqlParameterSourceProvider
public BeanPropertyItemSqlParameterSourceProvider()
メソッドの詳細
createSqlParameterSource
指定されたアイテムの値に基づいて、BeanPropertySqlParameterSource
にパラメーター値を指定します。- 次で指定:
- インターフェース
ItemSqlParameterSourceProvider<T>
のcreateSqlParameterSource
- パラメーター:
item
- パラメーター値に使用するアイテム- 戻り値:
- アイテムから抽出されたパラメーター