Interface ItemPreparedStatementSetter<T>
- All Known Implementing Classes:
ColumnMapItemPreparedStatementSetter
public interface ItemPreparedStatementSetter<T>
A convenient strategy for SQL updates, acting effectively as the inverse of
RowMapper
.- Author:
- Dave Syer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setValues
(T item, PreparedStatement ps) Set parameter values on the given PreparedStatement as determined from the provided item.
-
Method Details
-
setValues
Set parameter values on the given PreparedStatement as determined from the provided item.- Parameters:
item
- the item to obtain the values fromps
- the PreparedStatement to invoke setter methods on- Throws:
SQLException
- if a SQLException is encountered (i.e. there is no need to catch SQLException)
-