Package reportgen.prototype.queryresults

Examples of reportgen.prototype.queryresults.ResultsRowList


            //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();
    }

TOP

Related Classes of reportgen.prototype.queryresults.ResultsRowList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.