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
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    batchUpdate(org.springframework.jdbc.core.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, org.springframework.jdbc.core.PreparedStatementSetter statementSetter)
    Collects query with statement setter for further batch execution.
    void
    collectQuery(String sql, org.springframework.jdbc.core.PreparedStatementSetter statementSetter, BatchCollector.ResultCheck resultCheck)
    Collect query.
  • Method Details

    • collectQuery

      void collectQuery(String sql, 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(String sql, 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 query
      resultCheck - 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 method
      resultCheck - the result check object
    • batchUpdate

      void batchUpdate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
      Executes batch update using all collected batch groups.