Examples of JREmptyDataSource


Examples of net.sf.jasperreports.engine.JREmptyDataSource

            e.printStackTrace();
        }
    }

    private JRDataSource createDataSource() {
        return new JREmptyDataSource(4);
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.JREmptyDataSource

                if (UtilValidate.isNotEmpty(datasourceName)) {
                    Debug.logInfo("Filling report with connection from datasource: " + datasourceName, module);
                    jp = JasperFillManager.fillReport(report, parameters, ConnectionFactory.getConnection(datasourceName));
                } else {
                    Debug.logInfo("Filling report with an empty JR datasource", module);
                    jp = JasperFillManager.fillReport(report, parameters, new JREmptyDataSource());
                }
            } else {
                Debug.logInfo("Filling report with a passed in jrDataSource", module);
                jp = JasperFillManager.fillReport(report, parameters, jrDataSource);
            }
View Full Code Here

Examples of net.sf.jasperreports.engine.JREmptyDataSource

            PipedInputStream fillToPrintInputStream = new PipedInputStream(fillToPrintOutputStream);

            if (UtilValidate.isNotEmpty(datasourceName)) {
                JasperFillManager.fillReportToStream(report, fillToPrintOutputStream, parameters, ConnectionFactory.getConnection(datasourceName));
            } else {
                JasperFillManager.fillReportToStream(report, fillToPrintOutputStream, parameters, new JREmptyDataSource());
            }
            JasperExportManager.exportReportToXmlStream(fillToPrintInputStream, response.getOutputStream());
        } catch (IOException ie) {
            throw new ViewHandlerException("IO Error in region", ie);
        } catch (java.sql.SQLException e) {
View Full Code Here

Examples of net.sf.jasperreports.engine.JREmptyDataSource

                if (UtilValidate.isNotEmpty(datasourceName)) {
                    Debug.logInfo("Filling report with connection from datasource: " + datasourceName, module);
                    jp = JasperFillManager.fillReport(report, parameters, ConnectionFactory.getConnection(datasourceName));
                } else {
                    Debug.logInfo("Filling report with an empty JR datasource", module);
                    jp = JasperFillManager.fillReport(report, parameters, new JREmptyDataSource());
                }
            } else {
                Debug.logInfo("Filling report with a passed in jrDataSource", module);
                jp = JasperFillManager.fillReport(report, parameters, jrDataSource);
            }
View Full Code Here

Examples of net.sf.jasperreports.engine.JREmptyDataSource

                if (UtilValidate.isNotEmpty(datasourceName)) {
                    Debug.logInfo("Filling report with connection from datasource: " + datasourceName, module);
                    jp = JasperFillManager.fillReport(report, parameters, ConnectionFactory.getConnection(datasourceName));
                } else {
                    Debug.logInfo("Filling report with an empty JR datasource", module);
                    jp = JasperFillManager.fillReport(report, parameters, new JREmptyDataSource());
                }
            } else {
                Debug.logInfo("Filling report with a passed in jrDataSource", module);
                jp = JasperFillManager.fillReport(report, parameters, jrDataSource);
            }
View Full Code Here

Examples of net.sf.jasperreports.engine.JREmptyDataSource

        ArrayList<HashMap> lines = new ArrayList<HashMap>();
        this.addLines(lines);
        if (lines.size()>0)
            return new JRMapCollectionDataSource(lines);
        else
            return new JREmptyDataSource();
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.JREmptyDataSource

            ArrayList<HashMap> posLines = new ArrayList<HashMap>();
            this.addLines(transaction.getPositions(), posLines);
            JRMapCollectionDataSource ds = new JRMapCollectionDataSource(posLines);
            return ds;
        } else {
            return new JREmptyDataSource();
        }
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.JREmptyDataSource

        this.setAddressLetter(addressLetter);
    }

    @Override
    protected JRDataSource createDataSource() throws Exception {
        return new JREmptyDataSource();
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.JREmptyDataSource

    HashedMap parameters=new HashedMap();
    parameters.put("PARAM_OUTPUT_FORMAT", outputType);
   
    //parameters.put("SBI_HTTP_SESSION", session);   ???

    JREmptyDataSource conn=new JREmptyDataSource(1);

    // identity string for object execution
    UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
    UUID uuid_local = uuidGen.generateTimeBasedUUID();
    String executionId = uuid_local.toString();
View Full Code Here

Examples of net.sf.jasperreports.engine.JREmptyDataSource

            PipedInputStream fillToPrintInputStream = new PipedInputStream(fillToPrintOutputStream);

            if (datasourceName != null && datasourceName.length() > 0) {
                JasperFillManager.fillReportToStream(report, fillToPrintOutputStream, parameters, ConnectionFactory.getConnection(datasourceName));
            } else {
                JasperFillManager.fillReportToStream(report, fillToPrintOutputStream, parameters, new JREmptyDataSource());
            }
            JasperExportManager.exportReportToXmlStream(fillToPrintInputStream, response.getOutputStream());
        } catch (IOException ie) {
            throw new ViewHandlerException("IO Error in region", ie);
        } catch (java.sql.SQLException e) {
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.