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

Examples of org.pentaho.reporting.engine.classic.extensions.datasources.olap4j.connections.OlapConnectionProvider


   *
   * @throws org.xml.sax.SAXException if there is a parsing error.
   */
  protected void doneParsing() throws SAXException
  {
    OlapConnectionProvider provider = null;
    if (connectionProviderReadHandler != null)
    {
      provider = (OlapConnectionProvider) connectionProviderReadHandler.getObject();
    }
    if (provider == null)
View Full Code Here


  public String getDisplayConnectionName(final DataFactoryMetaData metaData,
                                         final DataFactory dataFactory)
  {
    final AbstractMDXDataFactory mdxDataFactory = (AbstractMDXDataFactory) dataFactory;
    final OlapConnectionProvider connectionProvider = mdxDataFactory.getConnectionProvider();
    if (connectionProvider instanceof DriverConnectionProvider)
    {
      final DriverConnectionProvider driverConnectionProvider = (DriverConnectionProvider) connectionProvider;
      return driverConnectionProvider.getProperty("::pentaho-reporting::name");
    }
View Full Code Here

  public String getDisplayConnectionName(final DataFactoryMetaData metaData,
                                         final DataFactory dataFactory)
  {
    final AbstractMDXDataFactory mdxDataFactory = (AbstractMDXDataFactory) dataFactory;
    final OlapConnectionProvider connectionProvider = mdxDataFactory.getConnectionProvider();
    if (connectionProvider instanceof DriverConnectionProvider)
    {
      final DriverConnectionProvider driverConnectionProvider = (DriverConnectionProvider) connectionProvider;
      return driverConnectionProvider.getProperty("::pentaho-reporting::name");
    }
View Full Code Here

    return "Olap4JDataSourceEditor.Banded";
  }

  protected AbstractNamedMDXDataFactory createDataFactory()
  {
    final OlapConnectionProvider connectionProvider = createConnectionProvider();
    if (connectionProvider == null)
    {
      return null;
    }
    final BandedMDXDataFactory returnDataFactory = new BandedMDXDataFactory(connectionProvider);
View Full Code Here

    return "Olap4JDataSourceEditor.Denormalized";
  }

  protected AbstractNamedMDXDataFactory createDataFactory()
  {
    final OlapConnectionProvider connectionProvider = createConnectionProvider();
    if (connectionProvider == null)
    {
      return null;
    }
    final DenormalizedMDXDataFactory returnDataFactory = new DenormalizedMDXDataFactory(connectionProvider);
View Full Code Here

    return "Olap4JDataSourceEditor.Legacy";
  }

  protected AbstractNamedMDXDataFactory createDataFactory()
  {
    final OlapConnectionProvider connectionProvider = createConnectionProvider();
    if (connectionProvider == null)
    {
      return null;
    }
    final LegacyBandedMDXDataFactory returnDataFactory = new LegacyBandedMDXDataFactory(connectionProvider);
View Full Code Here

   *
   * @throws org.xml.sax.SAXException if there is a parsing error.
   */
  protected void doneParsing() throws SAXException
  {
    OlapConnectionProvider provider = null;
    if (connectionProviderReadHandler != null)
    {
      provider = (OlapConnectionProvider) connectionProviderReadHandler.getObject();
    }
    if (provider == null)
View Full Code Here

        final String script = dataFactory.getScript(queryName);
        dialogModel.addQuery(queryName, query, scriptLanguage, script);
      }
      dialogModel.setSelectedQuery(selectedQueryName);

      final OlapConnectionProvider currentJNDISource = dataFactory.getConnectionProvider();
      final JdbcConnectionDefinition definition = getConnectionPanel().createConnectionDefinition(currentJNDISource);
      getDialogModel().addConnection(definition);
      getDialogModel().getConnections().setSelectedItem(definition);

      getDialogModel().setJdbcUserField(dataFactory.getJdbcUserField());
View Full Code Here

  protected OlapConnectionProvider createConnectionProvider()
  {
    final JdbcConnectionDefinition connectionDefinition =
        (JdbcConnectionDefinition) getDialogModel().getConnections().getSelectedItem();
    final OlapConnectionProvider connectionProvider;
    if (connectionDefinition instanceof JndiConnectionDefinition)
    {
      final JndiConnectionDefinition jcd = (JndiConnectionDefinition) connectionDefinition;
      final JndiConnectionProvider provider = new JndiConnectionProvider();
      provider.setConnectionPath(jcd.getJndiName());
View Full Code Here

    // Load the current configuration
    if (dataFactory != null)
    {

      final OlapConnectionProvider currentJNDISource = dataFactory.getConnectionProvider();
      final JdbcConnectionDefinition definition = getConnectionPanel().createConnectionDefinition(currentJNDISource);
      getDialogModel().addConnection(definition);
      getDialogModel().getConnections().setSelectedItem(definition);

      getDialogModel().setJdbcUserField(dataFactory.getJdbcUserField());
View Full Code Here

TOP

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

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.