Class BeanPropertyItemSqlParameterSourceProvider<T>
java.lang.Object
org.springframework.batch.item.database.BeanPropertyItemSqlParameterSourceProvider<T>
- All Implemented Interfaces:
ItemSqlParameterSourceProvider<T>
public class BeanPropertyItemSqlParameterSourceProvider<T>
extends 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 -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.jdbc.core.namedparam.SqlParameterSourcecreateSqlParameterSource(T item) Provide parameter values in anBeanPropertySqlParameterSourcebased on values from the provided item.
-
Constructor Details
-
BeanPropertyItemSqlParameterSourceProvider
public BeanPropertyItemSqlParameterSourceProvider()
-
-
Method Details
-
createSqlParameterSource
Provide parameter values in anBeanPropertySqlParameterSourcebased on values from the provided item.- Specified by:
createSqlParameterSourcein interfaceItemSqlParameterSourceProvider<T>- Parameters:
item- the item to use for parameter values- Returns:
- parameters extracted from the item
-