Package org.jfree.report

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())
    {
      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


            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())
        {
            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

    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

   *
   * @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

      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())
    {
      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

        // 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

    {
      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

  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

      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())
    {
      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

            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())
        {
            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

TOP

Related Classes of org.jfree.report.ReportData

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.