Examples of StaticDataRow


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

  public void testComplexReplacement()
  {
    final MessageFormatSupport support = new MessageFormatSupport();
    support.setFormatString("$(null,number,integer), $(dummy), $(null,date), $(null,number,integer)");
    final StaticDataRow sdr = new StaticDataRow(new String[]{"null", "dummy"}, new String[]{null, "Content"});

    final String text = support.performFormat(sdr);
    assertEquals("Expected content w/o nullString", "<null>, Content, <null>, <null>", text);

    support.setNullString("-");
View Full Code Here

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

  public void testNestedPattern()
  {
    final MessageFormatSupport support = new MessageFormatSupport();
    support.setFormatString("$(null,choice,0#$(null)|0<$(dummy))");
    final StaticDataRow sdr = new StaticDataRow(new String[]{"null", "dummy"},
        new Object[]{IntegerCache.getInteger(0), IntegerCache.getInteger(1)});

    final String text = support.performFormat(sdr);
    assertEquals("Expected content ", "0", text);

    final StaticDataRow sdr2 = new StaticDataRow(new String[]{"null", "dummy"},
        new Object[]{IntegerCache.getInteger(1), IntegerCache.getInteger(2)});
    support.setNullString("-");
    final String ntext = support.performFormat(sdr2);
    assertEquals("Expected content w nullString", "2", ntext);
  }
View Full Code Here

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

          IntegerCache.getInteger(series), dataset.getSeriesKey(series),
          IntegerCache.getInteger(dataset.getSeriesCount()),
          IntegerCache.getInteger(item), IntegerCache.getInteger(dataset.getItemCount(series))
      };
      formulaExpression.setRuntime(new WrapperExpressionRuntime
          (new StaticDataRow(ADDITIONAL_COLUMN_KEYS, values), runtime));
      final Object o = formulaExpression.getValue();
      if (o == null)
      {
        return null;
      }
View Full Code Here

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

          IntegerCache.getInteger(series), dataset.getSeriesKey(series),
          IntegerCache.getInteger(dataset.getSeriesCount()),
          IntegerCache.getInteger(item), IntegerCache.getInteger(dataset.getItemCount(series))
      };
      formulaExpression.setRuntime(new WrapperExpressionRuntime
          (new StaticDataRow(ADDITIONAL_COLUMN_KEYS, values), runtime));
      final Object o = formulaExpression.getValue();
      if (o == null)
      {
        return null;
      }
View Full Code Here

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

  protected DataRow computeData(Band band, ExpressionRuntime runtime)
  {
    if (band.getComputedStyle().getBooleanStyleProperty(ElementStyleKeys.VISIBLE) == false)
    {
      return new StaticDataRow();
    }

    this.values.clear();
    compute(band, runtime);
    return new StaticDataRow(values);
  }
View Full Code Here

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

        }
        else if (dataFactory instanceof DataFactoryDesignTimeSupport)
        {
          final DataFactoryDesignTimeSupport dts = (DataFactoryDesignTimeSupport) dataFactory;
          reportData = dts.queryDesignTimeStructure
              (query, new QueryDataRowWrapper(new StaticDataRow(), queryTimeout, 1, sortConstraints));
        }
        else
        {
          reportData = dataFactory.queryData
              (query, new QueryDataRowWrapper(new StaticDataRow(), queryTimeout, 1, sortConstraints));
        }

        offlineTableModel = new OfflineTableModel(reportData, new DefaultDataAttributeContext());
      }
      finally
View Full Code Here

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

          IntegerCache.getInteger(series), dataset.getSeriesKey(series),
          IntegerCache.getInteger(dataset.getSeriesCount()),
          IntegerCache.getInteger(item), IntegerCache.getInteger(dataset.getItemCount(series))
      };
      formulaExpression.setRuntime(new WrapperExpressionRuntime
          (new StaticDataRow(ADDITIONAL_COLUMN_KEYS, values), runtime));
      final Object o = formulaExpression.getValue();
      if (o == null)
      {
        return null;
      }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.states.datarow.StaticDataRow

  public static MimeMessage createReport(final MailDefinition mailDefinition,
                                         final Session session)
      throws ReportProcessingException, ContentIOException, MessagingException
  {
    return createReport(mailDefinition, session, new StaticDataRow());
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.states.datarow.StaticDataRow

    for (int i = 0; i < columnCount; i++)
    {
      columnValues[i] = burstingData.getValueAt(row, i);
      columnNames[i] = burstingData.getColumnName(i);
    }
    return new StaticDataRow(columnNames, columnValues);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.states.datarow.StaticDataRow

          key, keys,
          IntegerCache.getInteger(dataset.getIndex(key)), items,
          IntegerCache.getInteger(0)
      };
      formulaExpression.setRuntime(new WrapperExpressionRuntime
          (new StaticDataRow(ADDITIONAL_COLUMN_KEYS, values), runtime));
      final Object o = formulaExpression.getValue();
      if (o == null)
      {
        return null;
      }
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.