クラス BeanPropertySqlParameterSource

java.lang.ObjectSE
org.springframework.jdbc.core.namedparam.AbstractSqlParameterSource
org.springframework.jdbc.core.namedparam.BeanPropertySqlParameterSource
実装されたすべてのインターフェース:
SqlParameterSource

public class BeanPropertySqlParameterSource extends AbstractSqlParameterSource
指定された JavaBean オブジェクトの Bean プロパティからパラメーター値を取得する SqlParameterSource 実装。Bean プロパティの名前はパラメーター名と一致する必要があります。パラメーター名と一致するアクセサーメソッドを使用して、レコードクラスのコンポーネントもサポートします。

その Bean プロパティアクセスには Spring BeanWrapper を使用します。

導入:
2.0
作成者:
Thomas Risberg, Juergen Hoeller
関連事項:
  • コンストラクターの詳細

    • BeanPropertySqlParameterSource

      public BeanPropertySqlParameterSource(ObjectSE object)
      指定された Bean の新しい BeanPropertySqlParameterSource を作成します。
      パラメーター:
      object - ラップする Bean インスタンス
  • メソッドの詳細