Package org.pentaho.reporting.engine.classic.core

Examples of org.pentaho.reporting.engine.classic.core.ReportDataFactoryException


        DataFactoryEditorSupport.configureDataFactoryForPreview(dataFactory, designTimeContext);

        final XPathPreviewWorker worker = new XPathPreviewWorker(dataFactory, query);
        previewDialog.showData(worker);

        final ReportDataFactoryException factoryException = worker.getException();
        if (factoryException != null)
        {
          ExceptionDialog.showExceptionDialog(XPathDataSourceEditor.this,
              Messages.getString("XPathDataSourceEditor.PreviewError.Title"),
              Messages.getString("XPathDataSourceEditor.PreviewError.Message"), factoryException);
View Full Code Here


      open = true;
    }

    public TableModel queryData(final String query, final DataRow parameters) throws ReportDataFactoryException
    {
      throw new ReportDataFactoryException("Unconditional error thrown");
    }
View Full Code Here

      interpreter.declareBean("definition", definition, MasterReport.class); //$NON-NLS-1$
      interpreter.declareBean("flowController", flowController, DefaultFlowController.class); //$NON-NLS-1$
      final Object o = interpreter.eval(getLanguage(), "expression", 1, 1, preDataScript);
      if (o instanceof MasterReport == false)
      {
        throw new ReportDataFactoryException("Not a MasterReport");
      }
      return (MasterReport) o; //$NON-NLS-1$

    }
    catch (BSFException e)
    {
      throw new ReportDataFactoryException("Failed to initialize the BSF-Framework", e);
    }
  }
View Full Code Here

      interpreter.declareBean("definition", definition, MasterReport.class); //$NON-NLS-1$
      interpreter.declareBean("flowController", flowController, DefaultFlowController.class); //$NON-NLS-1$
      final Object o = interpreter.eval(getLanguage(), "expression", 1, 1, script);
      if (o instanceof MasterReport == false)
      {
        throw new ReportDataFactoryException("Not a MasterReport");
      }
      return (MasterReport) o; //$NON-NLS-1$

    }
    catch (BSFException e)
    {
      throw new ReportDataFactoryException("Failed to initialize the BSF-Framework", e);
    }
  }
View Full Code Here

      interpreter.declareBean("definition", definition, MasterReport.class); //$NON-NLS-1$
      interpreter.declareBean("flowController", flowController, DefaultFlowController.class); //$NON-NLS-1$
      final Object o = interpreter.eval(getLanguage(), "expression", 1, 1, preDataScript);
      if (o instanceof SubReport == false)
      {
        throw new ReportDataFactoryException("Not a SubReport");
      }
      return (SubReport) o; //$NON-NLS-1$

    }
    catch (BSFException e)
    {
      throw new ReportDataFactoryException("Failed to initialize the BSF-Framework", e);
    }
  }
View Full Code Here

      interpreter.declareBean("definition", definition, SubReport.class); //$NON-NLS-1$
      interpreter.declareBean("flowController", flowController, DefaultFlowController.class); //$NON-NLS-1$
      final Object o = interpreter.eval(getLanguage(), "expression", 1, 1, script);
      if (o instanceof SubReport == false)
      {
        throw new ReportDataFactoryException("Not a MasterReport");
      }
      return (SubReport) o; //$NON-NLS-1$

    }
    catch (BSFException e)
    {
      throw new ReportDataFactoryException("Failed to initialize the BSF-Framework", e);
    }
  }
View Full Code Here

      throw new NullPointerException("Query is null."); //$NON-NLS-1$
    }
    final String realQuery = scriptingSupport.computeQuery(query, parameters);
    if (realQuery == null)
    {
      throw new ReportDataFactoryException("Query '" + query + "' is not recognized."); //$NON-NLS-1$ //$NON-NLS-2$
    }
    TableModel queryResult = super.queryData( realQuery, parameters );
    TableModel postProcessResult = scriptingSupport.postProcessResult( query, parameters, queryResult );
    return postProcessResult;
  }
View Full Code Here

      return parametrizeAndQuery(parameters, translatedQuery, preparedParameterNames);
    }
    catch (Exception e)
    {
      throw new ReportDataFactoryException("Failed at query: " + query, e); //$NON-NLS-1$
    }
    finally
    {
      currentRunningStatement = null;
    }
View Full Code Here

    {
      factory = ObjectUtilities.loadAndInstantiate
          (parametrizationProviderClassname, SimpleSQLReportDataFactory.class, ParametrizationProviderFactory.class);
      if (factory == null)
      {
        throw new ReportDataFactoryException
            ("The specified parametrization factory is not valid: " + parametrizationProviderClassname);
      }
    }
    return factory;
  }
View Full Code Here

      throw e;
    }
    catch (SQLException e)
    {
      logger.warn("Unable to perform cache preparation", e);
      throw new ReportDataFactoryException("Unable to perform cache preparation", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.ReportDataFactoryException

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.