//prepare result set
List<ResultColumn> colProps = new ArrayList<ResultColumn>();
for(QueryResultColumn col:core.getColumns().getList()) {
colProps.add(col.getProperty());
}
ResultsRowList rrlist = new ResultsRowList(colProps, core.getPostConditions(), core.getRowCount());
//fill result set
for(Object row: sqlQuery.getResultList()) {
Map<QEntityProperty, Object> model = processor.analyze(row);
ResultsRow resultRow = buildResultsRow(manager, core, model);
rrlist.appendRow(resultRow);
}
System.out.println("<<<<<<<<<< CONTINUE 1 ANALYZE RESULTS >>>>>>>>>>>>>>");
rrlist.commit();
results.add(rrlist);
}
//prepare result list
List<ResultColumn> colsList = new ArrayList<ResultColumn>();
for(ReportResultColumn col :report.getColumns().getList()) {
colsList.add(col.getProperties());
}
ResultsRowList resultSet = new ResultsRowList(colsList, null, report.getRowCount());
//fill list
for(ResultsRowList result: results) {
for(ResultsRow row : result.getResultRows()) {
resultSet.appendRow(row);
}
}
resultSet.commit();
return resultSet.getResults();
}