List<ResultsRowList> results = new ArrayList<ResultsRowList>();
//execute cores
for(int i=0; i<cores.size(); i++) {
QCore core = cores.get(i);
QSQLProcessor processor = core.getSQLProcessor();
Query sqlQuery = prepareSQL(manager, processor);
//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();