public interface BatchCollector
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BatchCollector.ResultCheck |
| 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 statement setter for further batch execution.
|
void |
collectQuery(String sql,
PreparedStatementSetter statementSetter,
BatchCollector.ResultCheck resultCheck)
Collect query.
|
void collectQuery(String sql, Object... params)
sql - defining PreparedStatement that will be reused.params - arguments for the queryvoid collectQuery(String sql, Object[] params, BatchCollector.ResultCheck resultCheck)
sql - defining PreparedStatement that will be reused.params - arguments for the queryresultCheck - the result check objectvoid collectQuery(String sql, PreparedStatementSetter statementSetter)
sql - defining PreparedStatement that will be reused.statementSetter - object to set parameters on the PreparedStatement created by this methodvoid collectQuery(String sql, PreparedStatementSetter statementSetter, BatchCollector.ResultCheck resultCheck)
sql - defining PreparedStatement that will be reused.statementSetter - object to set parameters on the PreparedStatement created by this methodresultCheck - the result check objectvoid batchUpdate(JdbcTemplate jdbcTemplate)
Copyright © 2017 SAP SE. All Rights Reserved.