code: public void setMaximumBatchUpdateSize(int size) {
      if (!batchUpdateSupport) {
        throw new InvalidOperationException("Batch updates not allowed by database driver.");
      }
      if (! isEnabled(DB.Option.BATCH_UPDATES)) {
        throw new InvalidOperationException(DB.Option.BATCH_UPDATES + " option is not enabled.");
      }
      if (size < 1) {
        throw new InvalidOperationException("Invalid batch update size: " + size);
      }
      maxBatchUpdateSize = size;
    }
docs: Set maximum size for batch updates.
  @param size The size to set.
  @see #getMaximumBatchUpdateSize()
  @see #DEFAULT_MAX_BATCH_UPDATE_SIZE
  @see DB.Option#BATCH_UPDATES