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

Examples of org.pentaho.reporting.engine.classic.core.ReportEnvironmentDataRow


      resourceManager = new ResourceManager();
      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


      this.documentMetaData = bundle.getMetaData();
    }
    this.dataFactory.initialize(new DesignTimeDataFactoryContext
        (configuration, resourceManager, contentBase, resourceBundleFactory, dataFactory));

    final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(reportEnvironment);
    this.parameterValues = new CompoundDataRow(envDataRow, parameterValues);

  }
View Full Code Here

    this.reportEnvironment = reportEnvironment;
    this.dataFactory = new CachingDataFactory(dataFactory, false);
    this.dataFactory.initialize(new DesignTimeDataFactoryContext
        (configuration, resourceManager, resourceKey, resourceBundleFactory, dataFactory));

    this.envDataRow = new ReportEnvironmentDataRow(reportEnvironment);
    this.parameterValues = new CompoundDataRow(envDataRow, parameterValues);
  }
View Full Code Here

    final DefaultDataAttributeContext dac = new DefaultDataAttributeContext
        (gmr.outputProcessorMetaData, gmr.getResourceBundleFactory().getLocale());
    gmr.schemaCompiler =
        new ProcessingDataSchemaCompiler(schemaDefinition, dac, reportContext.getResourceManager(), null);
    gmr.dataSchema = null;
    gmr.setEnvironmentDataRow(new ReportEnvironmentDataRow(reportContext.getEnvironment()));
    gmr.setParameterDataRow(parameterDataRow);
    return gmr;
  }
View Full Code Here

    {
      throw new NullPointerException();
    }

    final DataRow parameterData = context.getParameterData();
    final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(context.getReportEnvironment());
    final DataFactory dataFactory = context.getDataFactory();
    PerformanceLoggingStopWatch sw = context.getPerformanceMonitorContext().createStopWatch
            (PerformanceTags.REPORT_PARAMETER_QUERY, new FormattedMessage("query={%s}", getQueryName()));
    try
    {
View Full Code Here

    private ReportParameterValues trustedValues;

    private TrustedParameterContext(final ParameterContext context)
    {
      this.context = context;
      this.environmentDataRow = new ReportEnvironmentDataRow(context.getReportEnvironment());
      this.trustedValues = new ReportParameterValues();
    }
View Full Code Here

                                          final ReportParameterValues parameterValues,
                                          final ParameterDefinitionEntry entry,
                                          final Object untrustedValue,
                                          final Object defaultValue) throws ReportProcessingException
  {
    final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(parameterContext.getReportEnvironment());
    final String formula = entry.getParameterAttribute
        (ParameterAttributeNames.Core.NAMESPACE, ParameterAttributeNames.Core.POST_PROCESSOR_FORMULA,
            parameterContext);
    if (StringUtils.isEmpty(formula, true))
    {
View Full Code Here

      resourceBundleFactory = new DefaultResourceBundleFactory();
      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

        configuration = ClassicEngineBoot.getInstance().getGlobalConfig();
        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.ReportEnvironmentDataRow

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.