接口 ItemPreparedStatementSetter<T>
public interface ItemPreparedStatementSetter<T>
A convenient strategy for SQL updates, acting effectively as the inverse ofRowMapper
.- 作者:
- Dave Syer
方法详细资料
setValues
void setValues(T item, java.sql.PreparedStatement ps) throws java.sql.SQLException
Set parameter values on the given PreparedStatement as determined from the provided item.- 参数:
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)