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

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


        if (previewDialog == null)
        {
          previewDialog = new DataPreviewDialog(Olap4JDataSourceEditor.this);
        }

        final AbstractMDXDataFactory dataFactory = createDataFactory();
        DataFactoryEditorSupport.configureDataFactoryForPreview(dataFactory, context);

        final Olap4JPreviewWorker worker = new Olap4JPreviewWorker(dataFactory, query, 0, theMaxRows);
        previewDialog.showData(worker);
View Full Code Here


    if (!performEdit())
    {
      return null;
    }

    final AbstractMDXDataFactory factory = createDataFactory();
    if (factory == null)
    {
      return null;
    }
    factory.setJdbcUserField(getDialogModel().getJdbcUserField());
    factory.setJdbcPasswordField(getDialogModel().getJdbcPasswordField());
    factory.setRoleField(connectionComponent.getRoleField());
    return factory;
  }
View Full Code Here

    if (!isConfirmed())
    {
      return null;
    }

    final AbstractMDXDataFactory factory = createDataFactory();
    if (factory == null)
    {
      return null;
    }
    factory.setJdbcUserField(getDialogModel().getJdbcUserField());
    factory.setJdbcPasswordField(getDialogModel().getJdbcPasswordField());
    factory.setRoleField(connectionComponent.getRoleField());
    return factory;
  }
View Full Code Here

        if (previewDialog == null)
        {
          previewDialog = new DataPreviewDialog(Olap4JDataSourceEditor.this);
        }

        final AbstractMDXDataFactory dataFactory = createAndConfigureDataFactory();
        final AbstractReportDefinition report = context.getReport();
        final MasterReport masterReport = DesignTimeUtil.getMasterReport(report);
        final Configuration configuration;
        final ResourceKey contentBase;
        final ReportEnvironment reportEnvironment;
        if (masterReport == null)
        {
          contentBase = null;
          configuration = ClassicEngineBoot.getInstance().getGlobalConfig();
          reportEnvironment = new DefaultReportEnvironment(configuration);
        }
        else
        {
          contentBase = masterReport.getContentBase();
          configuration = masterReport.getConfiguration();
          reportEnvironment = masterReport.getReportEnvironment();
        }
        dataFactory.initialize(configuration,
            report.getResourceManager(), contentBase, MasterReport.computeAndInitResourceBundleFactory
                (report.getResourceBundleFactory(), reportEnvironment));

        final Olap4JPreviewWorker worker = new Olap4JPreviewWorker(dataFactory, query, 0, theMaxRows);
        previewDialog.showData(worker);
View Full Code Here

TOP

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

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.