Examples of DataFactory


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

   */
  protected void doneParsing() throws SAXException
  {
    if (dataFactoryReadHandler != null)
    {
      final DataFactory dataFactory = dataFactoryReadHandler.getDataFactory();
      if (dataFactory != null)
      {
        report.setDataFactory(dataFactory);
      }
    }
View Full Code Here

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

    {
      return;
    }

    final MasterReport report = (MasterReport) maybeReport;
    final DataFactory dataFactory = dataFactoryReadHandler.getDataFactory();
    if (dataFactory != null)
    {
      report.setDataFactory(dataFactory);
    }
  }
View Full Code Here

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

      throws ReportDataFactoryException
  {
    final CompoundDataFactory cdf = new CompoundDataFactory();
    while (reportDefinition != null)
    {
      final DataFactory dataFactory = reportDefinition.getDataFactory();
      if (dataFactory != null)
      {
        cdf.add(dataFactory);
      }
      final Section parentSection = reportDefinition.getParentSection();
View Full Code Here

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

    }

    AbstractReportDefinition reportDefinition = this.getParent();
    while (reportDefinition != null)
    {
      final DataFactory reportDataFactory = reportDefinition.getDataFactory();
      if (reportDataFactory instanceof CompoundDataFactory)
      {
        final CompoundDataFactory compoundDataFactory = (CompoundDataFactory) reportDataFactory;
        for (int i = 0; i < compoundDataFactory.size(); i++)
        {
          final DataFactory df = compoundDataFactory.getReference(i);
          for (final String query : df.getQueryNames())
          {
            if (!query.equals(queryName))
            {
              continue;
            }
View Full Code Here

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

    rootAttrs.addNamespaceDeclaration("data", CompoundDataFactoryModule.NAMESPACE);
    xmlWriter.writeTag(CompoundDataFactoryModule.NAMESPACE, "compound-datasource", rootAttrs, XmlWriterSupport.OPEN);

    for (int i = 0; i < compoundDataFactory.size(); i++)
    {
      final DataFactory df = compoundDataFactory.get(i);
      final BundleDataFactoryWriterHandler writerHandler = BundleWriterUtilities.lookupWriteHandler(df);
      if (writerHandler == null)
      {
        throw new BundleWriterException("Unable to find writer-handler for data-factory " + df.getClass());
      }

      final String file = writerHandler.writeDataFactory(bundle, df, state);
      if (file == null)
      {
        throw new BundleWriterException("Data-factory writer did not create a file for " + df.getClass());
      }
      final String refFile = IOUtils.getInstance().createRelativePath(file, fileName);
      xmlWriter.writeTag(CompoundDataFactoryModule.NAMESPACE, "data-factory", "href", refFile,
          XmlWriterSupport.CLOSE);
    }
View Full Code Here

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

      report.setQuery(dataDefinition.getQuery());
      report.setQueryLimit(dataDefinition.getQueryLimit());
      report.setQueryTimeout(dataDefinition.getQueryTimeout());

      final DataFactory dataFactory = dataDefinition.getDataFactory();
      if (dataFactory != null)
      {
        report.setDataFactory(dataFactory);
      }
      final ReportParameterDefinition definition = dataDefinition.getParameterDefinition();
View Full Code Here

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

  protected void doneParsing() throws SAXException
  {
    final String primaryQuery;
    final int primaryQueryLimit;
    final int primaryQueryTimeout;
    final DataFactory primaryDataFactory;
    if (dataSourceElementHandler == null)
    {
      primaryDataFactory = null;
      primaryQuery = null;
      primaryQueryLimit = 0;
View Full Code Here

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

  protected void doneParsing() throws SAXException
  {
    final String primaryQuery;
    final int primaryQueryLimit;
    final int primaryQueryTimeout;
    final DataFactory dataFactory;
    if (dataSourceElementHandler == null)
    {
      primaryQuery = null;
      primaryQueryLimit = 0;
      primaryQueryTimeout = 0;
View Full Code Here

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

      throw new NullPointerException();
    }

    final DataRow parameterData = context.getParameterData();
    final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(context.getReportEnvironment());
    final DataFactory dataFactory = context.getDataFactory();
    final TableModel tableModel = dataFactory.queryData(getQueryName(),
        new CompoundDataRow(envDataRow, parameterData));

    final String formula = getParameterAttribute(ParameterAttributeNames.Core.NAMESPACE,
        ParameterAttributeNames.Core.DISPLAY_VALUE_FORMULA, context);
    if (StringUtils.isEmpty(formula, true))
View Full Code Here

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

    {
      dataSchemaModel = null;
      specification = getReportSpec()// now get the new one if it exists
      if(dataFactory == null)
      {
        final DataFactory theDataFactory = reportDefinition.getDataFactory();
        if(theDataFactory.getQueryNames().length > 0)
        {
          dataFactory = reportDefinition.getDataFactory();
        }
      }
      else
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.