code: public Query addToBatch(){
          try {
              buildPreparedStatement(false).addBatch();
              if (this.maxBatchRecords > 0){
                  if(++this.currentBatchRecords % this.maxBatchRecords == 0) {
                      this.executeBatch();
                  }
              }
          } catch (SQLException e) {
              throw new Sql2oException("Error while adding statement to batch", e);
          }
  
          return this;
      }
docs: Adds a set of parameters to this <code>Query</code>
  object's batch of commands. <br/>
  
  If maxBatchRecords is more than 0, executeBatch is called upon adding that many
  commands to the batch. <br/>
  
  The current number of batched commands is accessible via the <code>getCurrentBatchRecords()</code>
  method.