Package reportgen.ren.report.items

Examples of reportgen.ren.report.items.CoresList


    public ReportQuery getQuery() {
        return reportQuery;
    }

    private void initCores() throws ReportException {
        CoresList cores = reportQuery.getCores();
        for(int i=0; i<cores.size(); i++) {
            QCore core = cores.get(i);
            CorePanel panel = new CorePanel(parent, core);
            tabs.put(core, panel);
            maintab.add(panel, 1);
            maintab.setTitleAt(1, "Выборка '" + core.toString() + "'");
        }
View Full Code Here


     * @param manager
     * @return
     * @throws reportgen.exception.ReportException
     */
    public QueryResults execute(EntityManager manager) throws ReportException {
        CoresList cores = report.getCores();
        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>();
View Full Code Here

        this.inputs = new  InputList(this);
        this.subReports = new SubReportList(this);
        this.tableFormats = new TableFormatList();
        this.rowCount = new RowCount();
        this.version = ReportFactory.getActualVersion();
        this.cores = new CoresList(this);

        CoreFactoryList factory = new CoreFactoryList();
        QCore core = factory.createDefaultCore(getReportContext(new NoNeedAtom()));
        this.cores.add(core);
    }
View Full Code Here

                return sl;
            }
        };
        subReports = new SubReportList(this, root, subReportContext);

        cores = new CoresList(this, root, getReportContext(ar));
        results = new ResultColumnList(this, root, getUnionContext(ar));
        tableFormats = new TableFormatList(root, getContext3Stage(ar));

        for(Atom atom:atoms) {
            atom.refresh();
View Full Code Here

            resultColTable.updateUI();
        }
    }//GEN-LAST:event_downBtnActionPerformed

    private void autoFillBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_autoFillBtnActionPerformed
        CoresList cores = query.getCores();
        if(cores.size() == 0) {
            return;
        }
        try {
            CoreColumnList cols = cores.get(0).getColumns();
            for(int i=1; i<cores.size(); i++) {
                QCore core = cores.get(i);
                if(core.getColumns().size() != cols.size()) {
                    throw new ReportException("Выборки отличаются количеством результатов");
                }
            }
            ResultColumnList results = query.getColumns();
View Full Code Here

TOP

Related Classes of reportgen.ren.report.items.CoresList

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.