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 a Map
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.
ItemPreparedStatementSetter
,
ColumnMapRowMapper
Constructor and Description |
---|
ColumnMapItemPreparedStatementSetter() |
Modifier and Type | Method and Description |
---|---|
void |
setValues(java.util.Map<java.lang.String,java.lang.Object> item,
java.sql.PreparedStatement ps)
Set parameter values on the given PreparedStatement as determined from
the provided item.
|
public ColumnMapItemPreparedStatementSetter()
public void setValues(java.util.Map<java.lang.String,java.lang.Object> item, java.sql.PreparedStatement ps) throws java.sql.SQLException
ItemPreparedStatementSetter
setValues
in interface ItemPreparedStatementSetter<java.util.Map<java.lang.String,java.lang.Object>>
ps
- the PreparedStatement to invoke setter methods onjava.sql.SQLException
- if a SQLException is encountered (i.e. there is no
need to catch SQLException)