Class DefaultBatchCollector

java.lang.Object
de.hybris.platform.directpersistence.impl.DefaultBatchCollector
All Implemented Interfaces:
BatchCollector
Direct Known Subclasses:
OracleBatchCollector

public class DefaultBatchCollector extends Object implements BatchCollector
  • Constructor Details

    • DefaultBatchCollector

      public DefaultBatchCollector()
  • Method Details

    • collectQuery

      public void collectQuery(String sql, Object... params)
      Description copied from interface: BatchCollector
      Collects query with parameters for further batch execution.
      Specified by:
      collectQuery in interface BatchCollector
      Parameters:
      sql - defining PreparedStatement that will be reused.
      params - arguments for the query
    • collectQuery

      public void collectQuery(String sql, Object[] params, BatchCollector.ResultCheck resultCheck)
      Description copied from interface: BatchCollector
      Collects query with parameters for further batch execution.
      Specified by:
      collectQuery in interface BatchCollector
      Parameters:
      sql - defining PreparedStatement that will be reused.
      params - arguments for the query
      resultCheck - the result check object
    • collectQuery

      public void collectQuery(String sql, org.springframework.jdbc.core.PreparedStatementSetter statementSetter)
      Description copied from interface: BatchCollector
      Collects query with statement setter for further batch execution.
      Specified by:
      collectQuery in interface BatchCollector
      Parameters:
      sql - defining PreparedStatement that will be reused.
      statementSetter - object to set parameters on the PreparedStatement created by this method
    • collectQuery

      public void collectQuery(String sql, org.springframework.jdbc.core.PreparedStatementSetter statementSetter, BatchCollector.ResultCheck resultCheck)
      Description copied from interface: BatchCollector
      Collect query.
      Specified by:
      collectQuery in interface BatchCollector
      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
    • getBatchGroups

      public Map<String,BatchGroup> getBatchGroups()
    • batchUpdate

      public void batchUpdate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
      Description copied from interface: BatchCollector
      Executes batch update using all collected batch groups.
      Specified by:
      batchUpdate in interface BatchCollector
    • preProcess

      protected Map<String,BatchGroup> preProcess(Map<String,BatchGroup> batchGroups)
      Allows to do any pre-process phase before batch groups will be processed. Default implementation does not pre-process batch groups.