Examples of queryData()


Examples of org.pentaho.reporting.engine.classic.core.DataFactory.queryData()

  @Test
  public void testQueryMultipleH() throws ReportDataFactoryException
  {
    DataFactory dataFactory = createDataFactory(queryMultipleH);
    final TableModel tableModel = dataFactory.queryData("default", new ParameterDataRow());

    Assert.assertEquals("[Time].[Quarters]", tableModel.getColumnName(2));
    Assert.assertEquals("[Time].[Years]", tableModel.getColumnName(1));
    Assert.assertNotNull(tableModel.getValueAt(1, 1));
    Assert.assertNotNull(tableModel.getValueAt(2, 2));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.DataFactory.queryData()

            MasterReport.computeAndInitResourceBundleFactory
                (reportDefinition.getResourceBundleFactory(), reportDefinition.getReportEnvironment()));
      }

      dataFactory.open();
      final TableModel tableModel = dataFactory.queryData
          (queryName, new QueryDataRowWrapper(new ReportParameterValues(), 1, 0));

      final int colCount = tableModel.getColumnCount();
      final String[] cols = new String[colCount];
      for (int i = 0; i < colCount; i++)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.DataFactory.queryData()

                }
              }

              final DataFactory dataFactory = new PentahoDataFactory( loader );
              final TableModel model =
                  dataFactory.queryData( jFreeReportAction.getDataJar().getDataClass(), new ParameterDataRow(
                      reportProperties ) );

              factory = new PentahoTableDataFactory( AbstractJFreeReportComponent.DATACOMPONENT_DEFAULTINPUT, model );
            }
          }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.DataFactory.queryData()

                  reportProperties.put( paramName, paramValue );
                }
              }

              final DataFactory dataFactory = new PentahoDataFactory( loader );
              final TableModel model = dataFactory.queryData( classLocation, new ParameterDataRow( reportProperties ) );

              factory = new PentahoTableDataFactory( AbstractJFreeReportComponent.DATACOMPONENT_DEFAULTINPUT, model );
            }
          }
        } catch ( Exception e ) {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.TableDataFactory.queryData()

      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.queryData()

    // name is referred later.
    for (int a = 0; a < tables.size(); a++)
    {
      final TableModel jtable = (TableModel) tables.get(a);
      tableDataFactory.addTable("table" + a, jtable);
      tableDataFactory.queryData("table" + a, null);
    }
    report.setDataFactory(tableDataFactory);
    report.setName("Raportti");

    PageFormatFactory pfFact = PageFormatFactory.getInstance();
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.TableDataFactory.queryData()

      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.queryData()

      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.queryData()

      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.cache.CachingDataFactory.queryData()

      {
        final MasterReport reportDefinition = activeContext.getContextRoot();
        dataFactory.initialize(new DesignTimeDataFactoryContext(reportDefinition));
      }

      final TableModel tableModel = dataFactory.queryData
          (queryName, new QueryDataRowWrapper(new ReportParameterValues(), 1, 0));

      final int colCount = tableModel.getColumnCount();
      final String[] cols = new String[colCount];
      for (int i = 0; i < colCount; i++)
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.