Package reportgen.prototype.entity

Examples of reportgen.prototype.entity.QSQLProcessor


        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();
View Full Code Here

TOP

Related Classes of reportgen.prototype.entity.QSQLProcessor

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.