Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRDataSource


      AbstractTablesSelector<?>        selector = createTableSelector(table, lpu, range, i);
      Collection<Map<String, Object>>      newData = selector.getDataList(year);
      mainData.addAll(newData);
    }
   
    JRDataSource                mainDataSourse = new JRMapCollectionDataSource(mainData);
    return mainDataSourse;
  }
View Full Code Here


      parameters.put("form_order_date", entity.getResolutionDateNumber());
      parameters.put("target_department_list", entity.getTargetDeaprtaments());
      parameters.put("target_times", entity.getTargetDates());
      parameters.put("year_as_num", year);
     
      JRDataSource            mainDataSourse = getMainDataSourse(year);
     
      parameters.put(JRParameter.REPORT_DATA_SOURCE, mainDataSourse);
      return buildReport(parameters);
    }
    catch (RuntimeException ex){
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

  /**
   * Produces the main test datasource, which will be displayed in the details
   * band of the report
   */
  public JRDataSource buildDefaultTestReport(Map<String, Object> reportParameters) {
    JRDataSource defaultDataSource = new JRBeanCollectionDataSource(reportDataContainer.getTestResults());
    fillMainReportDataParameters(reportParameters, reportDataContainer.getClassName(), reportDataContainer.getMethodTestResults());
    return defaultDataSource;
  }
View Full Code Here

  /**
   * Produces the method duration datasource, which will be displayed in the details band of the report
   * @param reportParameters
   */
  public JRDataSource buildTestMethodDurationReport(Map<String, Object> reportParameters) {
    JRDataSource methodDurationDataSource = fillMethodDurationReportDataParametersAndGetDataSource(reportParameters, reportDataContainer.getClassName(), reportDataContainer.getMethodTestResults());
    return methodDurationDataSource;
  }
View Full Code Here

      methodDurationReportBeans.add(methodDurationBean);
    }
   
    reportParameters.put(CLASS_NAME, className);
   
    JRDataSource methodDurationDataSource = new JRBeanCollectionDataSource(methodDurationReportBeans);
   
    return methodDurationDataSource;
  }
View Full Code Here

   * Prepares the report and calls the print method
   */
  public Boolean call() throws Exception {
    Map<String, Object> reportParameters = new HashMap<String, Object>();

    JRDataSource reportDataSource;

    Boolean returnValue = true;
   
    for (REPORT_TYPE type: types) {
      if (returnValue == false) {
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.