Examples of CdaDataFactory


Examples of org.pentaho.reporting.engine.classic.extensions.datasources.cda.CdaDataFactory

    return produceDataFactory();
  }

  private CdaDataFactory produceDataFactory()
  {
    final CdaDataFactory dataFactory = new CdaDataFactory();
    dataFactory.setBaseUrl(baseUrl.getText());
    dataFactory.setBaseUrlField((String) baseUrlField.getSelectedItem());
    dataFactory.setPassword(password.getText());
    dataFactory.setUsername(username.getText());
    dataFactory.setFile(file.getText());
    dataFactory.setPath(path.getText());
    dataFactory.setSolution(solution.getText());
    for (int i = 0; i < queriesTableModel.getRowCount(); i++)
    {
      dataFactory.setQuery(queriesTableModel.getName(i), queriesTableModel.getQuery(i));
    }
    return dataFactory;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.extensions.datasources.cda.CdaDataFactory

      {
        return;
      }
      try
      {
        final CdaDataFactory dataFactory = produceDataFactory();
        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 DataPreviewDialog previewDialog = new DataPreviewDialog(CdaDataSourceEditor.this);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.