Examples of ReportException


Examples of org.jboss.seam.reports.ReportException

    public JasperSeamReportDefinition compile(String name) throws ReportException {
        try {
            JasperReport compiledReport = JasperCompileManager.compileReport(name);
            return new JasperSeamReportDefinition(compiledReport);
        } catch (JRException e) {
            throw new ReportException(e);
        }
    }
View Full Code Here

Examples of org.jboss.seam.reports.ReportException

    protected JRExporter getExporter() {
        try {
            Class<JRExporter> exporterClass = getExporterClass();
            return exporterClass.newInstance();
        } catch (Exception e) {
            throw new ReportException("Error while creating renderer", e);
        }
    }
View Full Code Here

Examples of org.jboss.seam.reports.ReportException

        String outputType = firstLetterCaps(value);
        String className = RENDERER_PREFIX + outputType + RENDERER_SUFFIX;
        try {
            clazz = (Class<JRExporter>) Reflections.classForName(className);
        } catch (ClassNotFoundException cnfe) {
            throw new ReportException("Class " + className + " not found", cnfe);
        }
        return clazz;
    }
View Full Code Here

Examples of org.jboss.seam.reports.ReportException

        exporter.setParameter(JRExporterParameter.JASPER_PRINT, reportInstance.getDelegate());
        exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, output);
        try {
            exporter.exportReport();
        } catch (JRException e) {
            throw new ReportException(e);
        }
    }
View Full Code Here

Examples of reportgen.utils.ReportException

     */
    @Override
    public SubQueryLoaderResult loadSubReport(int id) throws ReportException {
        ReportgenQuery query = manager.find(ReportgenQuery.class, id);
        if(query == null) {
            throw new ReportException("Запроса с номером " + id + " не существует!");
        }

        SubQueryLoaderResult res = new SubQueryLoaderResult();
        res.title = query.getTitle();
        res.description = query.getDescription();
View Full Code Here

Examples of reportgen.utils.ReportException

        for(ReportResultColumn column: getReportResult()) {
            if(column.getTitle().equals(title)) {
                return column;
            }
        }
        throw new ReportException("Результат отчета с идентификатором '" + title + "' не существует");
    }
View Full Code Here

Examples of reportgen.utils.ReportException

        for(QEntity entity: getEntities(null)) {
            if(entity.getAtom().equals(atom)) {
                return entity;
            }
        }
        throw new ReportException("Сущность с идентификатором '" + atom + "' не существует");
    }
View Full Code Here

Examples of reportgen.utils.ReportException

        for(QEntityProperty property: getProperties(group, entity)) {
            if(property.getIdentification().equals(name)) {
                return property;
            }
        }
        throw new ReportException("Свойства с идентификатором '" + name + "' не существует");
    }
View Full Code Here

Examples of reportgen.utils.ReportException

        for(QueryResultColumn column: getQueryResults()) {
            if(column.getColTitle().equals(colTitle)) {
                return column;
            }
        }
        throw new ReportException("Результат выборки с идентификатором '" + colTitle + "' не существует");
    }
View Full Code Here

Examples of reportgen.utils.ReportException

        for(QCoreInlineSQL inline: getInlines()) {
            if(inline.getAtom().equals(atom)) {
                return inline;
            }
        }
        throw new ReportException("Подзапрос с идентификатором '" + atom + "' не существует");
    }
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.