Interface BatchCollector
-
- All Known Implementing Classes:
DefaultBatchCollector,OracleBatchCollector
public interface BatchCollectorCollects update statements and parameters which are then executed in a batch statement during update.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceBatchCollector.ResultCheck
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbatchUpdate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)Executes batch update using all collected batch groups.voidcollectQuery(java.lang.String sql, java.lang.Object... params)Collects query with parameters for further batch execution.voidcollectQuery(java.lang.String sql, java.lang.Object[] params, BatchCollector.ResultCheck resultCheck)Collects query with parameters for further batch execution.voidcollectQuery(java.lang.String sql, org.springframework.jdbc.core.PreparedStatementSetter statementSetter)Collects query with statement setter for further batch execution.voidcollectQuery(java.lang.String sql, org.springframework.jdbc.core.PreparedStatementSetter statementSetter, BatchCollector.ResultCheck resultCheck)Collect query.
-
-
-
Method Detail
-
collectQuery
void collectQuery(java.lang.String sql, java.lang.Object... params)Collects query with parameters for further batch execution.- Parameters:
sql- defining PreparedStatement that will be reused.params- arguments for the query
-
collectQuery
void collectQuery(java.lang.String sql, java.lang.Object[] params, BatchCollector.ResultCheck resultCheck)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(java.lang.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(java.lang.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.
-
-