code: public void addGroupBy(String[] fieldNames)
      {
          for (int i = 0; i < fieldNames.length; i++)
          {
              addGroupBy(fieldNames[i]);
          }
      }
docs: Adds an array of groupby fieldNames for ReportQueries.
  @param fieldNames The groupby to set
  @deprecated use QueryByCriteria#addGroupBy