Interface BatchCollector
- All Known Implementing Classes:
DefaultBatchCollector,OracleBatchCollector
public interface BatchCollector
Collects update statements and parameters which are then executed in a batch statement during update.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidbatchUpdate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) Executes batch update using all collected batch groups.voidcollectQuery(String sql, Object... params) Collects query with parameters for further batch execution.voidcollectQuery(String sql, Object[] params, BatchCollector.ResultCheck resultCheck) Collects query with parameters for further batch execution.voidcollectQuery(String sql, org.springframework.jdbc.core.PreparedStatementSetter statementSetter) Collects query with statement setter for further batch execution.voidcollectQuery(String sql, org.springframework.jdbc.core.PreparedStatementSetter statementSetter, BatchCollector.ResultCheck resultCheck) Collect query.
-
Method Details
-
collectQuery
Collects query with parameters for further batch execution.- Parameters:
sql- defining PreparedStatement that will be reused.params- arguments for the query
-
collectQuery
Collects query with parameters for further batch execution.- Parameters:
sql- defining PreparedStatement that will be reused.params- arguments for the queryresultCheck- the result check object
-
collectQuery
void collectQuery(String sql, org.springframework.jdbc.core.PreparedStatementSetter statementSetter) Collects query with statement setter for further batch execution.- Parameters:
sql- defining PreparedStatement that will be reused.statementSetter- object to set parameters on the PreparedStatement created by this method
-
collectQuery
void collectQuery(String sql, org.springframework.jdbc.core.PreparedStatementSetter statementSetter, BatchCollector.ResultCheck resultCheck) Collect query.- Parameters:
sql- defining PreparedStatement that will be reused.statementSetter- object to set parameters on the PreparedStatement created by this methodresultCheck- the result check object
-
batchUpdate
void batchUpdate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) Executes batch update using all collected batch groups.
-