Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRDataSource


            LOG.debug("Creating JasperReport for dynamicReport, format = " + documentFormat);
        }

        Map actionParametersMap = getParametersMap(_invocation);

        final JRDataSource ds = buildJRDataSource(_invocation.getStack().findValue(dataSource));

        // (Map) ActionContext.getContext().getSession().get("IMAGES_MAP");

        final HttpServletRequest request = (HttpServletRequest)_invocation.getInvocationContext().get(WebWorkStatics.HTTP_REQUEST);
        final HttpServletResponse response = (HttpServletResponse)_invocation.getInvocationContext().get(WebWorkStatics.HTTP_RESPONSE);
View Full Code Here


  protected JasperPrint newJasperPrint() throws JRException
  {
    final JasperPrint jasperPrint;
    JasperReport report = getJasperReport();
    Map<String, Object> params = getReportParameters();
    JRDataSource dataSource = getReportDataSource();
    if (dataSource != null)
    {
      jasperPrint = JasperFillManager.fillReport(report, params, dataSource);
    }
    else
View Full Code Here

  protected JasperPrint newJasperPrint() throws JRException
  {
    final JasperPrint jasperPrint;
    JasperReport report = getJasperReport();
    Map<String, Object> params = getReportParameters();
    JRDataSource dataSource = getReportDataSource();
    if (dataSource != null)
    {
      jasperPrint = JasperFillManager.fillReport(report, params, dataSource);
    }
    else
View Full Code Here

  public static JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, JRDataSource ds) throws JRException {
        return generateJasperPrint(dr, layoutManager, ds, new HashMap());
    }

  public static JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, Collection collection) throws JRException {
    JRDataSource ds = new JRBeanCollectionDataSource(collection);
    return generateJasperPrint(dr, layoutManager, ds, new HashMap());
  }
View Full Code Here

    JRDataSource ds = new JRBeanCollectionDataSource(collection);
    return generateJasperPrint(dr, layoutManager, ds, new HashMap());
  }

  public static JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, ResultSet resultSet) throws JRException {
    JRDataSource ds = new JRResultSetDataSource(resultSet);
    return generateJasperPrint(dr, layoutManager, ds, new HashMap());
  }
View Full Code Here

  public static JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, JRDataSource ds) throws JRException {
        return generateJasperPrint(dr, layoutManager, ds, new HashMap());
    }

  public static JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, Collection collection) throws JRException {
    JRDataSource ds = new JRBeanCollectionDataSource(collection);
    return generateJasperPrint(dr, layoutManager, ds, new HashMap());
  }
View Full Code Here

    JRDataSource ds = new JRBeanCollectionDataSource(collection);
    return generateJasperPrint(dr, layoutManager, ds, new HashMap());
  }

  public static JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, ResultSet resultSet) throws JRException {
    JRDataSource ds = new JRResultSetDataSource(resultSet);
    return generateJasperPrint(dr, layoutManager, ds, new HashMap());
  }
View Full Code Here

            LOG.debug("Creating JasperReport for dynamicReport, format = " + documentFormat);
        }

        Map actionParametersMap = getParametersMap(_invocation);

        final JRDataSource ds = buildJRDataSource(_invocation.getStack().findValue(dataSource));

        // (Map) ActionContext.getContext().getSession().get("IMAGES_MAP");

        final HttpServletRequest request = (HttpServletRequest)_invocation.getInvocationContext().get(StrutsStatics.HTTP_REQUEST);
        final HttpServletResponse response = (HttpServletResponse)_invocation.getInvocationContext().get(StrutsStatics.HTTP_RESPONSE);
View Full Code Here

            }
            templateInputStream = getTemplateInputStream();

            outputStream = getOutputStream();
            final String ftype = outputType == null ? DEFAULT_OUTPUT_TYPE : outputType.toLowerCase();
            final JRDataSource jrDataSource = getJrDataSource();
            final Map<String, Object> reportParameters1 = getReportParameters();
            final Exporter exporter = getExporter();

            if (exporter != null) {
                //injected Exporter instance should already set appropriate ExporterOutput, so pass null to fillAndExportReport(...)
View Full Code Here

  }

  protected HashMap<String, Object> getDataPart(int part) throws ClipsServerException{
    HashMap<String, Object>      subParams = new HashMap<String, Object>();
    ArrayList<Map<String, Object>>  lines = addSubreportDataSet(part, subParams);
    JRDataSource          sourse = new JRMapCollectionDataSource(lines);
    HashMap<String, Object>      target = new HashMap<String, Object>();
    target.put(ReportBaseConstant.SUBREPORT_DATA_ARRAY_NAME, lines);
    target.put(ReportBaseConstant.SUBREPORT_DATASOURCE_NAME, sourse);
    target.put(ReportBaseConstant.SUBREPORT_PARAMETER_NAME, subParams);
    putTableParams(target, part);
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.JRDataSource

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.