类 BeanPropertyItemSqlParameterSourceProvider<T>
- java.lang.Object
- org.springframework.batch.item.database.BeanPropertyItemSqlParameterSourceProvider<T>
- 所有已实现的接口:
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.- 从以下版本开始:
- 2.0
- 作者:
- Thomas Risberg
构造器概要
构造器 构造器 说明 BeanPropertyItemSqlParameterSourceProvider()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.jdbc.core.namedparam.SqlParameterSource
createSqlParameterSource(T item)
Provide parameter values in anBeanPropertySqlParameterSource
based on values from the provided item.
构造器详细资料
BeanPropertyItemSqlParameterSourceProvider
public BeanPropertyItemSqlParameterSourceProvider()
方法详细资料
createSqlParameterSource
public org.springframework.jdbc.core.namedparam.SqlParameterSource createSqlParameterSource(T item)
Provide parameter values in anBeanPropertySqlParameterSource
based on values from the provided item.- 指定者:
createSqlParameterSource
在接口中ItemSqlParameterSourceProvider<T>
- 参数:
item
- the item to use for parameter values- 返回:
- parameters extracted from the item