Examples of queryData()


Examples of org.pentaho.platform.plugin.action.jfreereport.helper.PentahoDataFactory.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.platform.plugin.action.jfreereport.helper.PentahoDataFactory.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.CompoundDataFactory.queryData()

    final CompoundDataFactory ccdf = new CascadingDataFactory();
    ccdf.add(caDf);
    ccdf.add(new StaticDataFactory());

    assertTrue(ccdf.isQueryExecutable("static", new StaticDataRow()));
    assertNotNull(ccdf.queryData("static", new StaticDataRow()));
  }

  public void testLineBreaksOnStart() throws ReportProcessingException, ContentProcessingException
  {
    Element textField = new Element();
View Full Code Here

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

    final TableModel burstingData;
    final DataFactory dataFactory = definition.getDataFactory();
    if (definition.getBurstQuery() != null &&
        dataFactory.isQueryExecutable(definition.getBurstQuery(), parameterValues))
    {
      burstingData = wrapWithParameters(dataFactory.queryData(definition.getBurstQuery(), parameterValues), parameterValues);
    }
    else
    {
      burstingData = wrapWithParameters(new DefaultTableModel(1, 0), parameterValues);
    }
View Full Code Here

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

    }

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

  {

    try
    {
      final DataFactory dataFactory = context.getRuntime().getDataFactory();
      final TableModel tableModel = dataFactory.queryData(query,
          new QueryDataRowWrapper(context.getDataRow(), queryLimit, queryTimeout));
      if (tableModel == null)
      {
        return null;
      }
View Full Code Here

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

  {

    try
    {
      final DataFactory dataFactory = context.getRuntime().getDataFactory();
      final TableModel tableModel = dataFactory.queryData(query,
          new QueryDataRowWrapper(context.getDataRow(), 1, queryTimeout));
      if (tableModel == null)
      {
        return null;
      }
View Full Code Here

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

      {
        mappings[i] = new ParameterMapping(fields[i], fields[i]);
      }

      final QueryParametersDataRow params = new QueryParametersDataRow(getDataRow(), mappings);
      final TableModel tableModel = dataFactory.queryData(query, new QueryDataRowWrapper(params, 1, queryTimeout));
      if (tableModel == null)
      {
        return;
      }
      final int columnCount = tableModel.getColumnCount();
View Full Code Here

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

            if (dataFactory.isQueryExecutable(queryNode.getQueryName(), new StaticDataRow()) == false)
            {
              return;
            }

            final TableModel tableModel = dataFactory.queryData(queryNode.getQueryName(), new StaticDataRow());

            final TableDataFactory tableDataFactory = new TableDataFactory();
            tableDataFactory.addTable(queryNode.getQueryName(), createModel(tableModel));
            AddDataFactoryAction.addDataFactory(activeContext, tableDataFactory, new DataFactoryChange[0]);
          }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.DataFactory.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.