code: public void addBatch(final String sql) throws SQLException {
      if (batchQueries == null) {
        batchQueries = new ArrayList<>();
      }
      if (sql == null) {
        throw ExceptionMapper.getSqlException("null cannot be set to addBatch( String sql)");
      }
      batchQueries.add(sql);
    }
docs: Adds the given SQL command to the current list of commands for this <code>Statement</code>
  object. The send in this list can be executed as a batch by calling the method
  <code>executeBatch</code>.
  
  @param sql typically this is a SQL <code>INSERT</code> or <code>UPDATE</code> statement
  @throws SQLException if a database access error occurs, this method is called on a closed
  <code>Statement</code> or the driver does not support batch updates
  @see #executeBatch
  @see DatabaseMetaData#supportsBatchUpdates