Examples of ReportException


Examples of reportgen.utils.ReportException

        for(QueryExecuterSub subreport: getSubreports()) {
            if(subreport.getAtom().equals(atom)) {
                return subreport;
            }
        }
        throw new ReportException("Подотчет с идентификатором '" + atom + "' не существует");
    }
View Full Code Here

Examples of reportgen.utils.ReportException

        for(CrossReport crossreport: getCrossReports()) {
            if(crossreport.getAtom().equals(atom)) {
                return crossreport;
            }
        }
        throw new ReportException("Кросс-отчет с идентификатором '" + atom + "' не существует");
    }
View Full Code Here

Examples of reportgen.utils.ReportException

        for(QueryInputValue input: getInputs()) {
            if(input.getAtom().equals(atom)) {
                return input;
            }
        }
        throw new ReportException("Входное значение  с идентификатором '" + atom + "' не существует");
    }
View Full Code Here

Examples of reportgen.utils.ReportException

        for(AggregateFunction function: getAggregFunctions(cls)) {
            if(function.getMnemonic().equals(mnemonic)) {
                return function;
            }
        }
        throw new ReportException("Функции с идентификатором '" + mnemonic + "' не существует");
    }
View Full Code Here

Examples of reportgen.utils.ReportException

        for(MathFunctionType func: getMathFunctions()) {
            if(func.getMnemonic().equals(mnemonic)) {
                return func;
            }
        }
        throw new ReportException("Функция  с идентификатором '" + mnemonic + "' не существует");
    }
View Full Code Here

Examples of reportgen.utils.ReportException

        for(MOperator operator: getOperators()) {
            if(operator.getMnemonic().trim().equals(mnemonic)) {
                return operator;
            }
        }
        throw new ReportException("Оператор  с идентификатором '" + mnemonic + "' не существует");
    }
View Full Code Here

Examples of reportgen.utils.ReportException

        for(ColRowRange range: getRanges()) {
            if(range.getAtom().equals(atom)) {
                return range;
            }
        }
        throw new ReportException("Диапазон с идентификатором '" + atom + "' не существует");

    }
View Full Code Here

Examples of reportgen.utils.ReportException

    }


    public void appendRow(ResultsRow rr) throws ReportException {
        if(commited) {
            throw new ReportException("Results already commited");
        }

        if(groupByCols.size() == 0) {
            resultRows.add(rr);
        } else {
View Full Code Here

Examples of reportgen.utils.ReportException

     */
    private static List<ResultsRow> cropToRowCount(List<ResultsRow> rows, RowCount rowCount)
            throws ReportException {

        if(rowCount.getMinimum() > rows.size()) {
            throw new ReportException("Запрос возвратил " + rows.size()
                    + " строк, а должен был как минимум" + rowCount.getMinimum());
        }
        List<ResultsRow> resRows = rows;
        if(rowCount.getMaximum() < rows.size()) {
            resRows = new LinkedList<ResultsRow>();
View Full Code Here

Examples of reportgen.utils.ReportException

    private int cols;

    public QueryResults(int cols, List<ResultsRow> resultRows) throws ReportException {
        if(resultRows.size() > 0
                && resultRows.get(0).getWidth() != cols) {
            throw new ReportException("Результат отчета не соответствует отчету.");
        }
        rows = resultRows;
        this.cols = cols;
    }
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.