org.springframework.batch.item.database
Interface ItemPreparedStatementSetter

All Known Implementing Classes:
ColumnMapItemPreparedStatementSetter

public interface ItemPreparedStatementSetter

A convenient strategy for SQL updates, acting effectively as the inverse of RowMapper.

Author:
Dave Syer

Method Summary
 void setValues(Object item, PreparedStatement ps)
          Set parameter values on the given PreparedStatement as determined from the provided item.
 

Method Detail

setValues

void setValues(Object item,
               PreparedStatement ps)
               throws SQLException
Set parameter values on the given PreparedStatement as determined from the provided item.

Parameters:
ps - the PreparedStatement to invoke setter methods on
Throws:
SQLException - if a SQLException is encountered (i.e. there is no need to catch SQLException)


Copyright © 2009 SpringSource. All Rights Reserved.