Examples of CoreColumnList


Examples of reportgen.prototype.columns.CoreColumnList

        tableFormats.validate();

        //проверка, что результаты всех выборок соответствуют результатам отчета
        for(int i=0; i<cores.size(); i++) {
            QCore core = cores.get(i);
            CoreColumnList coreColumns = core.getColumns();
            if(coreColumns.size() != results.size()) {
                throw new ReportException("Результаты выборки '" + core.getTitle()
                    + "' не соответствуют результатам отчета");
            }

            for(int j=0; j<coreColumns.size(); j++) {
                QueryResultColumn coreCol = coreColumns.get(j);
                ReportResultColumn resultCol = results.get(j);
                Class coreCls = coreCol.getCls();
                Class resCls = resultCol.getCls();
                if(resCls == null) {
                    throw new ReportException("Результаты выборки '" + coreCol.getColTitle()
View Full Code Here

Examples of reportgen.prototype.columns.CoreColumnList

    private RowCount rowCount;

    public Core(String title, Context context) {
        super(title, context);
        this.rowCount = new RowCount();
        this.columns = new CoreColumnList(this);
        this.postConditions = new MathExpressionConditions(getPostProcessContext());
        //this.resultInJava = new InlinesConditionList(this, getPostProcessContext());
    }
View Full Code Here

Examples of reportgen.prototype.columns.CoreColumnList

    }

    public Core(Element root, Context acontext) throws ReportException {
        super(root, acontext);
        rowCount = new RowCount(root);
        columns = new CoreColumnList(this, root, getResultContext());
       
        Context ctxpp = getPostProcessContext();
        //resultInJava = new InlinesConditionList(this, root, ctxpp);
       
        MathExpressionConditions conditions = new MathExpressionConditions(ctxpp);
View Full Code Here

Examples of reportgen.prototype.columns.CoreColumnList

        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();
            for(int j=0; j<cols.size(); j++) {
                QueryResultColumn col = cols.get(j);
                if(results.size() <= j) {
                    ReportResultColumn result = new ReportResultColumn(query.getUnionContext(new NoNeedAtom()));
                    result.setColClass(col.getCls());
                    result.setTitle(col.getColTitle());
                    results.add(result);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.