|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.item.database.support.ColumnMapItemPreparedStatementSetter
public class ColumnMapItemPreparedStatementSetter
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 Summary | |
|---|---|
ColumnMapItemPreparedStatementSetter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnMapItemPreparedStatementSetter()
| Method Detail |
|---|
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 on
java.sql.SQLException - if a SQLException is encountered (i.e. there is no
need to catch SQLException)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||