List of usage examples for org.springframework.jdbc.core ArgumentPreparedStatementSetter ArgumentPreparedStatementSetter
public ArgumentPreparedStatementSetter(@Nullable Object[] args)
From source file:com.emc.ecs.sync.service.RowIterator.java
public RowIterator(DataSource ds, RowMapper<T> rowMapper, String query, Object... params) { try {/*from ww w.j a v a 2 s . c o m*/ this.rowMapper = rowMapper; this.con = ds.getConnection(); this.st = con.prepareStatement(query); if (params != null && params.length > 0) new ArgumentPreparedStatementSetter(params).setValues(st); this.rs = st.executeQuery(); } catch (SQLException e) { close(); throw new RuntimeException(e); } }