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

Examples of org.pentaho.reporting.engine.classic.core.filter.DataSource


    writer.addStyleKeyFactory(new DefaultStyleKeyFactory());
    writer.addStyleKeyFactory(new PageableLayoutStyleKeyFactory());
    writer.addTemplateCollection(new DefaultTemplateCollection());
    writer.addElementFactory(new DefaultElementFactory());
    writer.addDataSourceFactory(new DefaultDataSourceFactory());
    final DataSource datasource = element.getDataSource();

    if (datasource instanceof EmptyDataSource)
    {
      // do nothing ..
    }
View Full Code Here


   *
   * @return the object.
   */
  public Object getObject()
  {
    final DataSource ds = (DataSource) super.getObject();
    if (childHandler != null && ds instanceof DataTarget)
    {
      final DataTarget dt = (DataTarget) ds;
      dt.setDataSource((DataSource) childHandler.getObject());
    }
View Full Code Here

    {
      super.writeParameter(name);
      return;
    }

    final DataSource ds = (DataSource) getObjectDescription().getParameter(name);
    final ObjectDescription dsDesc = getParameterDescription(name);
    final String dsname = dataSourceCollector.getDataSourceName(dsDesc);

    if (dsname == null)
    {
      throw new ReportWriterException("The datasource type is not registered: "
          + ds.getClass());
    }

    final XmlWriter writer = getXmlWriter();
    writer.writeTag(ExtParserModule.NAMESPACE, AbstractXMLDefinitionWriter.DATASOURCE_TAG,
        "type", dsname, XmlWriterSupport.OPEN);
View Full Code Here

   * @param element
   * @return the raw data.
   */
  public Object getRawValue(final ExpressionRuntime runtime, final Element element)
  {
    final DataSource source = element.getDataSource();
    if (source instanceof RawDataSource)
    {
      RawDataSource rds = (RawDataSource) source;
      return rds.getRawValue(runtime, element);
    }
View Full Code Here

   */
  public FormatSpecification getFormatString(final ExpressionRuntime runtime,
                                             final Element element,
                                             FormatSpecification formatSpecification)
  {
    final DataSource source = element.getDataSource();
    if (source instanceof RawDataSource)
    {
      RawDataSource rds = (RawDataSource) source;
      return rds.getFormatString(runtime, element, formatSpecification);
    }
View Full Code Here

        processRootBand((Band) element);
      }
      else if (element instanceof Element)
      {
        final Element e = (Element) element;
        final DataSource source = e.getElementType();
        if (source instanceof RawDataSource)
        {
          final ElementStyleSheet style = element.getStyle();
          final String oldFormat = (String)
              style.getStyleProperty(ElementStyleKeys.EXCEL_DATA_FORMAT_STRING);
View Full Code Here

  {
    if (e == null)
    {
      throw new NullPointerException();
    }
    DataSource s = e.getDataSource();
    while (s instanceof DataTarget)
    {
      final DataTarget tgt = (DataTarget) s;
      s = tgt.getDataSource();
    }
View Full Code Here

              "Update your report definition.");
      processAnchor((Anchor) value, parentRenderBox, element, stateKey);
    }
    else
    {
      final DataSource dataSource = element.getElementType();
      final Object rawValue;
      if (dataSource instanceof RawDataSource)
      {
        final RawDataSource rds = (RawDataSource) dataSource;
        rawValue = rds.getRawValue(runtime, element);
View Full Code Here

    {
      super.writeParameter(name);
      return;
    }

    final DataSource ds = (DataSource) getObjectDescription().getParameter(name);
    final ObjectDescription dsDesc = getParameterDescription(name);
    final String dsname = dataSourceCollector.getDataSourceName(dsDesc);

    if (dsname == null)
    {
      throw new ReportWriterException("The datasource type is not registered: "
          + ds.getClass());
    }

    final XmlWriter writer = getXmlWriter();
    writer.writeTag(ExtParserModule.NAMESPACE, AbstractXMLDefinitionWriter.DATASOURCE_TAG,
        "type", dsname, XmlWriterSupport.OPEN);
View Full Code Here

    return getRuntime().getExportDescriptor().startsWith("table/excel");
  }

  protected boolean evaluateElement(final ReportElement e)
  {
    final DataSource source = e.getElementType();
    if (source instanceof RawDataSource)
    {
      final ElementStyleSheet style = e.getStyle();
      final String oldFormat = (String)
          style.getStyleProperty(ElementStyleKeys.EXCEL_DATA_FORMAT_STRING);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.filter.DataSource

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.