public class DefaultBatchCollector extends Object implements BatchCollector
BatchCollector.ResultCheck| Constructor and Description |
|---|
DefaultBatchCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
batchUpdate(JdbcTemplate jdbcTemplate)
Executes batch update using all collected batch groups.
|
void |
collectQuery(String sql,
Object... params)
Collects query with parameters for further batch execution.
|
void |
collectQuery(String sql,
Object[] params,
BatchCollector.ResultCheck resultCheck)
Collects query with parameters for further batch execution.
|
void |
collectQuery(String sql,
PreparedStatementSetter statementSetter)
Collects query with parameters for further batch execution.
|
void |
collectQuery(String sql,
PreparedStatementSetter statementSetter,
BatchCollector.ResultCheck resultCheck)
Collects query with parameters for further batch execution.
|
Map<String,BatchGroup> |
getBatchGroups() |
protected Map<String,BatchGroup> |
preProcess(Map<String,BatchGroup> batchGroups)
Allows to do any pre-process phase before batch groups will be processed.
|
public void collectQuery(String sql, Object... params)
BatchCollectorcollectQuery in interface BatchCollectorsql - defining PreparedStatement that will be reused.params - arguments for the querypublic void collectQuery(String sql, Object[] params, BatchCollector.ResultCheck resultCheck)
BatchCollectorcollectQuery in interface BatchCollectorsql - defining PreparedStatement that will be reused.params - arguments for the queryresultCheck - the result check objectpublic void collectQuery(String sql, PreparedStatementSetter statementSetter)
BatchCollectorcollectQuery in interface BatchCollectorsql - defining PreparedStatement that will be reused.statementSetter - arguments for the querypublic void collectQuery(String sql, PreparedStatementSetter statementSetter, BatchCollector.ResultCheck resultCheck)
BatchCollectorcollectQuery in interface BatchCollectorsql - defining PreparedStatement that will be reused.statementSetter - arguments for the queryresultCheck - the result check objectpublic Map<String,BatchGroup> getBatchGroups()
public void batchUpdate(JdbcTemplate jdbcTemplate)
BatchCollectorbatchUpdate in interface BatchCollectorprotected Map<String,BatchGroup> preProcess(Map<String,BatchGroup> batchGroups)
Copyright © 2017 SAP SE. All Rights Reserved.