类 ColumnMapItemPreparedStatementSetter
- java.lang.Object
- org.springframework.batch.item.database.support.ColumnMapItemPreparedStatementSetter
- 所有已实现的接口:
ItemPreparedStatementSetter<java.util.Map<java.lang.String,java.lang.Object>>
public class ColumnMapItemPreparedStatementSetter extends java.lang.Object implements ItemPreparedStatementSetter<java.util.Map<java.lang.String,java.lang.Object>>
Implementation of the
ItemPreparedStatementSetter
interface that assumes all keys are contained within aMap
with the column name as the key. It assumes nothing about ordering, and assumes that the order the entry set can be iterated over is the same as the PreparedStatement should be set.- 作者:
- Lucas Ward, Dave Syer
- 另请参阅:
ItemPreparedStatementSetter
,ColumnMapRowMapper
构造器概要
构造器 构造器 说明 ColumnMapItemPreparedStatementSetter()
构造器详细资料
ColumnMapItemPreparedStatementSetter
public ColumnMapItemPreparedStatementSetter()
方法详细资料
setValues
public void setValues(java.util.Map<java.lang.String,java.lang.Object> item, java.sql.PreparedStatement ps) throws java.sql.SQLException
从接口复制的说明:ItemPreparedStatementSetter
Set parameter values on the given PreparedStatement as determined from the provided item.- 指定者:
setValues
在接口中ItemPreparedStatementSetter<java.util.Map<java.lang.String,java.lang.Object>>
- 参数:
item
- the item to obtain the values fromps
- the PreparedStatement to invoke setter methods on- 抛出:
java.sql.SQLException
- if a SQLException is encountered (i.e. there is no need to catch SQLException)