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

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


    dataSchema = new DefaultDataSchema();
  }

  public DataFactory getDataFactory()
  {
    return new CompoundDataFactory();
  }
View Full Code Here


      {
        throw new NullPointerException();
      }
      this.globalAttributes = globalAttributes;
      this.entry = parameter;
      this.parameterContext = new DefaultParameterContext(new CompoundDataFactory(), new StaticDataRow(),
          ClassicEngineBoot.getInstance().getGlobalConfig(), null, null, null, reportEnvironment);
    }
View Full Code Here

      wizardController.getEditorModel().setReportDefinition(original, true);
    }
    else
    {
      final MasterReport report = new MasterReport();
      report.setDataFactory(new CompoundDataFactory());
      report.setQuery(null);
      wizardController.getEditorModel().setReportDefinition(report, false);
    }

    // Create the gui
View Full Code Here

    this.currentRow = currentRow;
    dataRow = new StaticDataRow(new String[0], new Object[0]);
    dataSchema = new DefaultDataSchema();
    configuration = new DefaultConfiguration();
    resourceBundleFactory = new DefaultResourceBundleFactory();
    dataFactory = new CompoundDataFactory();
  }
View Full Code Here

  }

  private static MasterReport createDefaultReport()
  {
    final MasterReport report = new MasterReport();
    report.setDataFactory(new CompoundDataFactory());
    report.setQuery(null);
    return report;
  }
View Full Code Here

    if (xmlWriter == null)
    {
      throw new NullPointerException();
    }

    final CompoundDataFactory compoundDataFactory = (CompoundDataFactory) dataFactory;

    final AttributeList rootAttrs = new AttributeList();
    if (xmlWriter.isNamespaceDefined(CompoundDataFactoryModule.NAMESPACE) == false)
    {
      rootAttrs.addNamespaceDeclaration("data", CompoundDataFactoryModule.NAMESPACE);
    }
    xmlWriter.writeTag(SQLDataFactoryModule.NAMESPACE, "sql-datasource", rootAttrs, XmlWriterSupport.OPEN);
    xmlWriter.writeTag(CompoundDataFactoryModule.NAMESPACE, "compound-datasource", rootAttrs, XmlWriterSupport.OPEN);

    for (int i = 0; i < compoundDataFactory.size(); i++)
    {
      final DataFactory df = compoundDataFactory.get(i);
      final DataFactoryWriteHandler writerHandler = DataFactoryWriter.lookupWriteHandler(df);
      if (writerHandler == null)
      {
        throw new ReportWriterException("Unable to find writer-handler for data-factory " + df.getClass());
      }
View Full Code Here

    this.currentRow = currentRow;
    this.dataRow = dataRow;
    this.configuration = this.processingContext.getConfiguration();
    this.resourceBundleFactory = processingContext.getResourceBundleFactory();
    this.dataSchema = new DefaultDataSchema();
    this.dataFactory = new CompoundDataFactory();
  }
View Full Code Here

        final ParameterDefinitionEntry entry = entries[i];
        inspectParameter(designerContext, reportRenderContext, resultHandler, columnNames, parameters, entry);
      }
    }

    final CompoundDataFactory dataFactory = CompoundDataFactory.normalize(reportDefinition.getDataFactory());
    final int size = dataFactory.size();
    for (int i = 0; i < size; i++)
    {
      inspectDataSource(designerContext, reportRenderContext, resultHandler, columnNames, dataFactory);
    }
View Full Code Here

      {
        final DataFactory dataFactory = reportRenderContext.getContextRoot().getDataFactory();
        final LocationInfo queryLocation;
        if (dataFactory instanceof CompoundDataFactory)
        {
          final CompoundDataFactory cdf = (CompoundDataFactory) dataFactory;
          final DataFactory element = cdf.getDataFactoryForQuery(query);
          if (element == null)
          {
            queryLocation = new LocationInfo(dataFactory);
          }
          else
View Full Code Here

      }
    }
    else if (parent instanceof ParentDataFactoryNode)
    {
      final ParentDataFactoryNode pdfn = (ParentDataFactoryNode) parent;
      final CompoundDataFactory compoundDataFactory = pdfn.getDataFactory();
      if (index == compoundDataFactory.size())
      {
        if (pdfn.isSubReport())
        {
          return pdfn.getParentNode();
        }
        throw new IndexOutOfBoundsException();
      }
      return new InheritedDataFactoryWrapper(compoundDataFactory.getReference(index));
    }
    else if (parent instanceof InheritedDataFactoryWrapper)
    {
      final InheritedDataFactoryWrapper idf = (InheritedDataFactoryWrapper) parent;
      final DataFactory dataFactory = idf.getDataFactory();
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.CompoundDataFactory

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.