Examples of TableDataFactory


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

      System.err.println("File: " + REFERENCE_REPORT); //$NON-NLS-1$
      e.printStackTrace(System.err);
      System.exit(1);
      return;
    }
    report.setDataFactory(new TableDataFactory
        ("default", createData())); //$NON-NLS-1$
    try
    {
      HtmlReportUtil.createStreamHTML(report, System.getProperty("user.home") //$NON-NLS-1$
          + "/stylekey-reference.html"); //$NON-NLS-1$
View Full Code Here

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

    itemBand.addElement(itemsSparkFactory.createElement());

    itemBand.addElement(HorizontalLineElementFactory.createHorizontalLine
        (15, null, new BasicStroke(5)));

    report.setDataFactory(new TableDataFactory("default", data));
    return report;
  }
View Full Code Here

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

   *          if an error occured preventing the report definition.
   */
  public MasterReport createReport() throws ReportDefinitionException
  {
    final MasterReport report = parseReport();
    report.setDataFactory(new TableDataFactory
        ("default", data));
    return report;
  }
View Full Code Here

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

   *
   * @throws SAXException if there is a parsing error.
   */
  protected void doneParsing() throws SAXException
  {
    final TableDataFactory srdf = new TableDataFactory();
    for (int i = 0; i < queries.size(); i++)
    {
      final InlineTableReadHandler handler = (InlineTableReadHandler) queries.get(i);
      srdf.addTable(handler.getName(), handler.getData());
    }

    dataFactory = srdf;
  }
View Full Code Here

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

    }


    try
    {
      final TableDataFactory tableDataFactory = (TableDataFactory) dataFactory;

      final String fileName = BundleUtilities.getUniqueName(bundle, state.getFileName(),
          "datasources/inline-ds{0}.xml");
      if (fileName == null)
      {
        throw new IOException("Unable to generate unique name for Inline-Data-Source");
      }

      final OutputStream outputStream = bundle.createEntry(fileName, "text/xml");
      final DefaultTagDescription tagDescription = new DefaultTagDescription(
          ClassicEngineBoot.getInstance().getGlobalConfig(), InlineDataFactoryModule.TAG_DEF_PREFIX);
      final XmlWriter xmlWriter = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ",
          "\n");
      final AttributeList rootAttrs = new AttributeList();
      rootAttrs.addNamespaceDeclaration("data", InlineDataFactoryModule.NAMESPACE);
      xmlWriter.writeTag(InlineDataFactoryModule.NAMESPACE, "inline-datasource", rootAttrs, XmlWriterSupport.OPEN);

      final String[] tables = tableDataFactory.getQueryNames();
      for (int i = 0; i < tables.length; i++)
      {
        final String tableName = tables[i];
        final TableModel tableModel = tableDataFactory.queryData(tableName, null);

        xmlWriter.writeTag(InlineDataFactoryModule.NAMESPACE, "inline-table", "name", tableName, XmlWriterSupport.OPEN);
        xmlWriter.writeTag(InlineDataFactoryModule.NAMESPACE, "definition", XmlWriterSupport.OPEN);

        final Class[] colTypes = new Class[tableModel.getColumnCount()];
View Full Code Here

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

      // Create a JFreeReport from the XML file
      MasterReport report = parseReport(reportDefinition);

      // Create the data for the report
      SalesByProductlineReportData reportData = new SalesByProductlineReportData();
      TableDataFactory tableDataFactory = new TableDataFactory("default", reportData);//$NON-NLS-1$
      report.setDataFactory(tableDataFactory);
      report.getParameterValues().put("baseURL", "http://localhost:8080/pentaho");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("employee", "");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("product", "");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("productline", "Ships");//$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

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

      // Create a JFreeReport from the XML file
      MasterReport report = parseReport(reportDefinition);

      // Create the data for the report
      SalesByProductReportData reportData = new SalesByProductReportData();
      TableDataFactory tableDataFactory = new TableDataFactory("default", reportData);//$NON-NLS-1$
      report.setDataFactory(tableDataFactory);
      report.getParameterValues().put("baseURL", "http://localhost:8080/pentaho");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("employee", "");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("product", "");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("productline", "Ships");//$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

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

      // Create a JFreeReport from the XML file
      MasterReport report = parseReport(reportDefinition);

      // Create the data for the report
      SalesByProductReportData reportData = new SalesByProductReportData();
      TableDataFactory tableDataFactory = new TableDataFactory("default", reportData);//$NON-NLS-1$
      report.setDataFactory(tableDataFactory);
      report.getParameterValues().put("baseURL", "http://localhost:8080/pentaho");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("employee", "");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("product", "");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("productline", "Ships");//$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

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

      // Create a JFreeReport from the XML file
      MasterReport report = parseReport(reportDefinition);

      // Create the data for the report
      SalesBySupplierReportData reportData = new SalesBySupplierReportData();
      TableDataFactory tableDataFactory = new TableDataFactory("default", reportData);//$NON-NLS-1$
      report.setDataFactory(tableDataFactory);
      report.getParameterValues().put("baseURL", "http://localhost:8080/pentaho");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("employee", "");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("product", "");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("productline", "Ships");//$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

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

  }

  public MasterReport createReport() throws ReportDefinitionException
  {
    final MasterReport report = parseReport();
    report.setDataFactory(new TableDataFactory("default", data));
    return report;
  }
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.