org.springframework.batch.item.database

## Class BeanPropertyItemSqlParameterSourceProvider<T>

- java.lang.Object
- - org.springframework.batch.item.database.BeanPropertyItemSqlParameterSourceProvider<T>

- All Implemented Interfaces:
    ItemSqlParameterSourceProvider<T>

      public class BeanPropertyItemSqlParameterSourceProvider<T>
      extends java.lang.Object
      implements ItemSqlParameterSourceProvider<T>

  A convenient implementation for providing BeanPropertySqlParameterSource when the item has JavaBean properties that correspond to names used for parameters in the SQL statement.
  Since:
    2.0
  Author:
    Thomas Risberg

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BeanPropertyItemSqlParameterSourceProvider()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.springframework.jdbc.core.namedparam.SqlParameterSource` | `createSqlParameterSource(T item)` Provide parameter values in an `BeanPropertySqlParameterSource` based on values from the provided item.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BeanPropertyItemSqlParameterSourceProvider

          public BeanPropertyItemSqlParameterSourceProvider()

  - ### Method Detail

    - #### createSqlParameterSource

          public org.springframework.jdbc.core.namedparam.SqlParameterSource createSqlParameterSource(T item)

      Provide parameter values in an `BeanPropertySqlParameterSource` based on values from the provided item.
      Specified by:
        `createSqlParameterSource` in interface `ItemSqlParameterSourceProvider<T>`
      Parameters:
        `item` - the item to use for parameter values
      Returns:
        parameters extracted from the item