Examples of ReportData


Examples of org.jfree.report.ReportData

    {
      final HashMap map = (HashMap) queries.next();
      final Iterator dataSets = map.values().iterator();
      while (dataSets.hasNext())
      {
        final ReportData data = (ReportData) dataSets.next();
        try
        {
          data.close();
        }
        catch (DataSourceException e)
        {
          // ignore, we'll finish up anyway ..
        }
View Full Code Here

Examples of org.jfree.report.ReportData

    if (runtime == null)
    {
      return null;
    }

    final ReportData data = runtime.getData();
    if (data == null)
    {
      return null;
    }
    synchronized(data)
    {
      if (data.getCursorPosition() > 0)
      {
        return Boolean.FALSE;
      }
      if (data.isAdvanceable() == false)
      {
        return Boolean.TRUE;
      }
      return Boolean.FALSE;
    }
View Full Code Here

Examples of org.jfree.report.ReportData

   *
   * @return the value of the function.
   */
  public Object computeValue() throws DataSourceException
  {
    ReportData data = getRuntime().getData();
    synchronized(data)
    {
      if (data.isAdvanceable())
      {
        return Boolean.TRUE;
      }
      return Boolean.FALSE;
    }
View Full Code Here

Examples of org.jfree.report.ReportData

        // totally new query here.
        final HashMap newParams = new HashMap();
        queryCache.put(query, newParams);

        final Parameters params = new Parameters(parameters);
        final ReportData newData = backend.queryData(query, params);
        newParams.put(params, newData);
        newData.setCursorPosition(ReportData.BEFORE_FIRST_ROW);
        return newData;
      }
      else
      {
        // Lookup the parameters ...
        final Parameters params = new Parameters(parameters);
        final ReportData data = (ReportData) parameterCache.get(params);
        if (data != null)
        {
          data.setCursorPosition(ReportData.BEFORE_FIRST_ROW);
          return data;
        }

        final ReportData newData = backend.queryData(query, params);
        parameterCache.put(params, newData);
        newData.setCursorPosition(ReportData.BEFORE_FIRST_ROW);
        return newData;
      }
    }
    catch (DataSourceException e)
    {
View Full Code Here

Examples of org.jfree.report.ReportData

    {
      final HashMap map = (HashMap) queries.next();
      final Iterator dataSets = map.values().iterator();
      while (dataSets.hasNext())
      {
        final ReportData data = (ReportData) dataSets.next();
        try
        {
          data.close();
        }
        catch (DataSourceException e)
        {
          // ignore, we'll finish up anyway ..
        }
View Full Code Here

Examples of org.jfree.report.ReportData

  public static ReportDataRow createDataRow(final ReportDataFactory dataFactory,
                                            final String query,
                                            final DataSet parameters)
      throws DataSourceException, ReportDataFactoryException
  {
    final ReportData reportData = dataFactory.queryData(query, parameters);
    return new ReportDataRow(reportData);
  }
View Full Code Here

Examples of org.jfree.report.ReportData

      throws DataSourceException, ReportProcessingException, ReportDataFactoryException
  {
    final FlowController fc = getFlowController();
    final GlobalMasterRow masterRow = fc.getMasterRow();
    final ReportDataRow reportDataRow = masterRow.getReportDataRow();
    final ReportData reportData = reportDataRow.getReportData();
    if (reportData.isReadable() == false)
    {
      reportData.isReadable();
      // If this report has no data, then do not print the detail section. The detail section
      // is the only section that behaves this way, and for now this is only done in the OO-implementation
      final SectionLayoutController derived = (SectionLayoutController) clone();
      derived.setProcessingState(ElementLayoutController.FINISHED);
      derived.setFlowController(fc);
View Full Code Here

Examples of org.mifosplatform.infrastructure.dataqueries.data.ReportData

            } else {
                if (firstReport) {
                    firstReport = false;
                } else {
                    // write report entry
                    reportList.add(new ReportData(reportId, reportName, reportType, reportSubType, reportCategory, description, reportSql,
                            coreReport, useReport, reportParameters));
                }

                prevReportId = rpJoin.getReportId();

                reportId = rpJoin.getReportId();
                reportName = rpJoin.getReportName();
                reportType = rpJoin.getReportType();
                reportSubType = rpJoin.getReportSubType();
                reportCategory = rpJoin.getReportCategory();
                description = rpJoin.getDescription();
                reportSql = rpJoin.getReportSql();
                coreReport = rpJoin.getCoreReport();
                useReport = rpJoin.getUseReport();

                if (rpJoin.getReportParameterId() != null) {
                    // report has at least one parameter
                    reportParameters = new ArrayList<>();
                    reportParameters.add(new ReportParameterData(rpJoin.getReportParameterId(), rpJoin.getParameterId(), rpJoin
                            .getReportParameterName(), rpJoin.getParameterName()));
                } else {
                    reportParameters = null;
                }
            }

        }
        // write last report
        reportList.add(new ReportData(reportId, reportName, reportType, reportSubType, reportCategory, description, reportSql, coreReport,
                useReport, reportParameters));

        return reportList;
    }
View Full Code Here

Examples of org.mifosplatform.infrastructure.dataqueries.data.ReportData

    @Produces({ MediaType.APPLICATION_JSON })
    public String retrieveReport(@PathParam("id") final Long id, @Context final UriInfo uriInfo) {

        this.context.authenticatedUser().validateHasReadPermission(this.resourceNameForPermissions);

        final ReportData result = this.readReportingService.retrieveReport(id);

        final ApiRequestJsonSerializationSettings settings = this.apiRequestParameterHelper.process(uriInfo.getQueryParameters());

        if (settings.isTemplate()) {
            result.appendedTemplate(this.readReportingService.getAllowedParameters());
        }
        return this.toApiJsonSerializer.serialize(settings, result, this.RESPONSE_DATA_PARAMETERS);
    }
View Full Code Here

Examples of org.mifosplatform.infrastructure.dataqueries.data.ReportData

    @Produces({ MediaType.APPLICATION_JSON })
    public String retrieveOfficeTemplate(@Context final UriInfo uriInfo) {

        this.context.authenticatedUser().validateHasReadPermission(this.resourceNameForPermissions);

        final ReportData result = new ReportData();
        result.appendedTemplate(this.readReportingService.getAllowedParameters());

        final ApiRequestJsonSerializationSettings settings = this.apiRequestParameterHelper.process(uriInfo.getQueryParameters());
        return this.toApiJsonSerializer.serialize(settings, result, this.RESPONSE_DATA_PARAMETERS);
    }
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.