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

Examples of org.pentaho.reporting.engine.classic.extensions.datasources.mondrian.AbstractMDXDataFactory$MDXCompiler


   *
   * @throws org.xml.sax.SAXException if there is a parsing error.
   */
  protected void doneParsing() throws SAXException
  {
    final AbstractMDXDataFactory srdf = createDataFactory();
    if (connectionReadHandler != null)
    {
      srdf.setCubeFileProvider(connectionReadHandler.getCubeFileProvider());
      srdf.setDataSourceProvider(connectionReadHandler.getDataSourceProvider());
      srdf.setJdbcPassword(connectionReadHandler.getJdbcPassword());
      srdf.setJdbcUser(connectionReadHandler.getJdbcUser());
      srdf.setJdbcPasswordField(connectionReadHandler.getJdbcPasswordField());
      srdf.setJdbcUserField(connectionReadHandler.getJdbcUserField());
      srdf.setRole(connectionReadHandler.getRole());
      srdf.setRoleField(connectionReadHandler.getRoleField());
      srdf.setDesignTimeName(connectionReadHandler.getDesignTimeName());
    }
    dataFactory = srdf;
  }
View Full Code Here


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

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

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

    if (!(dataFactory instanceof AbstractMDXDataFactory))
    {
      return;
    }

    final AbstractMDXDataFactory mdxDataFactory = (AbstractMDXDataFactory) dataFactory;
    final CubeFileProvider cubeFileProvider = mdxDataFactory.getCubeFileProvider();
    if (StringUtils.isEmpty(cubeFileProvider.getCubeConnectionName()) == false)
    {
      // there is a cube-name for it already. Must be a developer sample or a new report
      return;
    }
View Full Code Here

   *
   * @throws org.xml.sax.SAXException if there is a parsing error.
   */
  protected void doneParsing() throws SAXException
  {
    final AbstractMDXDataFactory srdf = createDataFactory();
    if (connectionReadHandler != null)
    {
      connectionReadHandler.configure(srdf);
    }
   
    if (propertiesReadHandler != null)
    {
      srdf.setBaseConnectionProperties(propertiesReadHandler.getResult());
    }
    dataFactory = srdf;
  }
View Full Code Here

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

        final AbstractMDXDataFactory dataFactory = createDataFactory();
        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 MondrianPreviewWorker worker = new MondrianPreviewWorker(dataFactory, query, 0, theMaxRows);
        previewDialog.showData(worker);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.extensions.datasources.mondrian.AbstractMDXDataFactory$MDXCompiler

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.