类 BatchingBatch

  • 所有已实现的接口:
    Batch

    public class BatchingBatch
    extends AbstractBatchImpl
    A Batch implementation which does bathing based on a given size. Once the batch size is reached for a statement in the batch, the entire batch is implicitly executed.
    作者:
    Steve Ebersole
    • 构造器详细资料

      • BatchingBatch

        public BatchingBatch​(BatchKey key,
                             JdbcCoordinator jdbcCoordinator,
                             int batchSize)
        Constructs a BatchingBatch
        参数:
        key - The batch key
        jdbcCoordinator - The JDBC jdbcCoordinator
        batchSize - The batch size.
    • 方法详细资料

      • getBatchStatement

        public PreparedStatement getBatchStatement​(String sql,
                                                   boolean callable)
        从接口复制的说明: Batch
        Get a statement which is part of the batch, creating if necessary (and storing for next time).
        指定者:
        getBatchStatement 在接口中 Batch
        覆盖:
        getBatchStatement 在类中 AbstractBatchImpl
        参数:
        sql - The SQL statement.
        callable - Is the SQL statement callable?
        返回:
        The prepared statement instance, representing the SQL statement.
      • addToBatch

        public void addToBatch()
        从接口复制的说明: Batch
        Indicates completion of the current part of the batch.
      • doExecuteBatch

        protected void doExecuteBatch()
        从类复制的说明: AbstractBatchImpl
        Perform batch execution..

        This is called from the explicit execution, but may also be called from elsewhere depending on the exact implementation.

        指定者:
        doExecuteBatch 在类中 AbstractBatchImpl