Package org.pentaho.reporting.engine.classic.extensions.datasources.olap4j

Examples of org.pentaho.reporting.engine.classic.extensions.datasources.olap4j.SimpleLegacyBandedMDXDataFactory


  {
  }

  protected AbstractMDXDataFactory createDataFactory(final OlapConnectionProvider connectionProvider)
  {
    return new SimpleLegacyBandedMDXDataFactory(connectionProvider);
  }
View Full Code Here


    final AttributeList rootAttrs = new AttributeList();
    rootAttrs.addNamespaceDeclaration("data", Olap4JDataFactoryModule.NAMESPACE);

    xmlWriter.writeTag(Olap4JDataFactoryModule.NAMESPACE, "simple-legacy-banded-mdx-datasource", rootAttrs, XmlWriter.OPEN);

    final SimpleLegacyBandedMDXDataFactory pmdDataFactory = (SimpleLegacyBandedMDXDataFactory) dataFactory;
    try
    {
      writeBody(pmdDataFactory, xmlWriter);
    }
    catch (BundleWriterException e)
View Full Code Here

    final AttributeList rootAttrs = new AttributeList();
    rootAttrs.addNamespaceDeclaration("data", Olap4JDataFactoryModule.NAMESPACE);

    xmlWriter.writeTag(Olap4JDataFactoryModule.NAMESPACE, "simple-legacy-banded-mdx-datasource", rootAttrs, XmlWriter.OPEN);

    final SimpleLegacyBandedMDXDataFactory pmdDataFactory = (SimpleLegacyBandedMDXDataFactory) dataFactory;
    writeBody(pmdDataFactory, xmlWriter);

    xmlWriter.writeCloseTag();
    xmlWriter.close();
    return fileName;
View Full Code Here

      final JndiConnectionDefinition jcd = (JndiConnectionDefinition) connectionDefinition;
      final JndiConnectionProvider provider = new JndiConnectionProvider();
      provider.setConnectionPath(jcd.getJndiName());
      provider.setUsername(jcd.getUsername());
      provider.setPassword(jcd.getPassword());
      return new SimpleLegacyBandedMDXDataFactory(provider);
    }
    else if (connectionDefinition instanceof DriverConnectionDefinition)
    {
      final DriverConnectionDefinition dcd = (DriverConnectionDefinition) connectionDefinition;
      final DriverConnectionProvider provider = new DriverConnectionProvider();
      provider.setDriver(dcd.getDriverClass());
      provider.setUrl(dcd.getConnectionString());

      final Properties properties = dcd.getProperties();
      final Enumeration keys = properties.keys();
      while (keys.hasMoreElements())
      {
        final String key = (String) keys.nextElement();
        provider.setProperty(key, properties.getProperty(key));
      }

      return new SimpleLegacyBandedMDXDataFactory(provider);
    }
    else
    {
      return null;
    }
View Full Code Here

    final AttributeList rootAttrs = new AttributeList();
    rootAttrs.addNamespaceDeclaration("data", Olap4JDataFactoryModule.NAMESPACE);

    xmlWriter.writeTag(Olap4JDataFactoryModule.NAMESPACE, "simple-legacy-banded-mdx-datasource", rootAttrs, XmlWriter.OPEN);

    final SimpleLegacyBandedMDXDataFactory pmdDataFactory = (SimpleLegacyBandedMDXDataFactory) dataFactory;
    try
    {
      writeBody(pmdDataFactory, xmlWriter);
    }
    catch (BundleWriterException e)
View Full Code Here

    final AttributeList rootAttrs = new AttributeList();
    rootAttrs.addNamespaceDeclaration("data", Olap4JDataFactoryModule.NAMESPACE);

    xmlWriter.writeTag(Olap4JDataFactoryModule.NAMESPACE, "simple-legacy-banded-mdx-datasource", rootAttrs, XmlWriter.OPEN);

    final SimpleLegacyBandedMDXDataFactory pmdDataFactory = (SimpleLegacyBandedMDXDataFactory) dataFactory;
    writeBody(pmdDataFactory, xmlWriter);

    xmlWriter.writeCloseTag();
    xmlWriter.close();
    return fileName;
View Full Code Here

  {
  }

  protected AbstractMDXDataFactory createDataFactory(final OlapConnectionProvider connectionProvider)
  {
    return new SimpleLegacyBandedMDXDataFactory(connectionProvider);
  }
View Full Code Here

      final JndiConnectionDefinition jcd = (JndiConnectionDefinition) connectionDefinition;
      final JndiConnectionProvider provider = new JndiConnectionProvider();
      provider.setConnectionPath(jcd.getJndiName());
      provider.setUsername(jcd.getUsername());
      provider.setPassword(jcd.getPassword());
      return new SimpleLegacyBandedMDXDataFactory(provider);
    }
    else if (connectionDefinition instanceof DriverConnectionDefinition)
    {
      final DriverConnectionDefinition dcd = (DriverConnectionDefinition) connectionDefinition;
      final DriverConnectionProvider provider = new DriverConnectionProvider();
      provider.setDriver(dcd.getDriverClass());
      provider.setUrl(dcd.getConnectionString());

      final Properties properties = dcd.getProperties();
      final Enumeration keys = properties.keys();
      while (keys.hasMoreElements())
      {
        final String key = (String) keys.nextElement();
        provider.setProperty(key, properties.getProperty(key));
      }

      return new SimpleLegacyBandedMDXDataFactory(provider);
    }
    else
    {
      return null;
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.extensions.datasources.olap4j.SimpleLegacyBandedMDXDataFactory

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.