Package org.pentaho.reporting.engine.classic.core.parameters

Examples of org.pentaho.reporting.engine.classic.core.parameters.CompoundDataRow


      configuration = ClassicEngineBoot.getInstance().getGlobalConfig();
      documentMetaData = new MemoryDocumentMetaData();
      reportEnvironment = new DefaultReportEnvironment(configuration);

      final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(reportEnvironment);
      parameterData = new CompoundDataRow(envDataRow, new ParameterDataRow());

    }
View Full Code Here


        contentBase = null;
        documentMetaData = new MemoryDocumentMetaData();
        reportEnvironment = new DefaultReportEnvironment(configuration);

        final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(reportEnvironment);
        parameterData = new CompoundDataRow(envDataRow, new ParameterDataRow());
      }
      else
      {
        this.resourceManager = report.getResourceManager();
        this.contentBase = report.getContentBase();
        final Object dataCacheEnabledRaw =
            report.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.DATA_CACHE);
        final boolean dataCacheEnabled = Boolean.FALSE.equals(dataCacheEnabledRaw) == false;
        this.dataFactory = new CachingDataFactory(report.getDataFactory().derive(), dataCacheEnabled);
        this.resourceBundleFactory = MasterReport.computeAndInitResourceBundleFactory
            (report.getResourceBundleFactory(), report.getReportEnvironment());
        this.reportEnvironment = report.getReportEnvironment();
        this.configuration = report.getConfiguration();
        final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(reportEnvironment);
        this.parameterData = new CompoundDataRow(envDataRow, new ParameterDataRow(report.getParameterValues()));

        dataFactory.initialize(configuration, report.getResourceManager(), report.getContentBase(), resourceBundleFactory);

        if (report.getBundle() != null)
        {
View Full Code Here

    }

    public void update(final ReportParameterValues properties)
    {
      final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(reportEnvironment);
      this.parameterData = new CompoundDataRow(envDataRow, new ParameterDataRow(properties));
    }
View Full Code Here

        expressionRuntime = new WrapperExpressionRuntime(staticDataRow, rfc.getRuntime());
      }
      else
      {
        expressionRuntime = new GenericExpressionRuntime
            (new CompoundDataRow(staticDataRow, createDataRow(entries)),
                new DefaultTableModel(), -1, new DefaultProcessingContext());
      }


      final String formula = computeFormula(configIndicator);
View Full Code Here

      return;
    }

    if (overrideValues != null)
    {
      this.dataRow = new CompoundDataRow(overrideValues, runtime.getDataRow());
    }
    else
    {
      this.dataRow = runtime.getDataRow();
    }
View Full Code Here

      resourceBundleFactory = new DefaultResourceBundleFactory();
      defaultEnvironment = new DefaultReportEnvironment(ClassicEngineBoot.getInstance().getGlobalConfig());
      defaultDocumentMetaData = new MemoryDocumentMetaData();

      final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(defaultEnvironment);
      dataRow = new CompoundDataRow(envDataRow, new StaticDataRow());
    }
View Full Code Here

      return;
    }

    if (overrideValues != null)
    {
      this.dataRow = new CompoundDataRow(overrideValues, runtime.getDataRow());
    }
    else
    {
      this.dataRow = runtime.getDataRow();
    }
View Full Code Here

      configuration = ClassicEngineBoot.getInstance().getGlobalConfig();
      documentMetaData = new MemoryDocumentMetaData();
      reportEnvironment = new DefaultReportEnvironment(configuration);

      final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(reportEnvironment);
      parameterData = new CompoundDataRow(envDataRow, new ParameterDataRow());

    }
View Full Code Here

        contentBase = null;
        documentMetaData = new MemoryDocumentMetaData();
        reportEnvironment = new DefaultReportEnvironment(configuration);

        final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(reportEnvironment);
        parameterData = new CompoundDataRow(envDataRow, new ParameterDataRow());
      }
      else
      {
        this.resourceManager = report.getResourceManager();
        this.contentBase = report.getContentBase();
        final Object dataCacheEnabledRaw =
            report.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.DATA_CACHE);
        final boolean dataCacheEnabled = Boolean.FALSE.equals(dataCacheEnabledRaw) == false;
        this.dataFactory = new CachingDataFactory(report.getDataFactory().derive(), dataCacheEnabled);
        this.resourceBundleFactory = MasterReport.computeAndInitResourceBundleFactory
            (report.getResourceBundleFactory(), report.getReportEnvironment());
        this.reportEnvironment = report.getReportEnvironment();
        this.configuration = report.getConfiguration();
        final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(reportEnvironment);
        this.parameterData = new CompoundDataRow(envDataRow, new ParameterDataRow(report.getParameterValues()));

        dataFactory.initialize(new DesignTimeDataFactoryContext(report));

        if (report.getBundle() != null)
        {
View Full Code Here

    }

    public void update(final ReportParameterValues properties)
    {
      final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(reportEnvironment);
      this.parameterData = new CompoundDataRow(envDataRow, new ParameterDataRow(properties));
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.parameters.CompoundDataRow

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.