Package org.efs.openreports.providers

Examples of org.efs.openreports.providers.ProviderException


        session.close();
      }
    }
    catch (HibernateException he)
    {
      throw new ProviderException(he);
    }
  }
View Full Code Here


  {
    ReportChart chart = input.getReport().getReportChart();
    chart.setDescription(ORUtil.parseStringWithParameters(chart.getDescription(), input.getParameters()));
   
    ChartValue[] values = getChartValues(chart, input.getParameters());       
    if (values == null || values.length < 1) throw new ProviderException(LocalStrings.ERROR_REPORT_EMPTY);
         
    return createChartOutput(chart, values, input.getReport().isDisplayInline(), input.getParameters());
 
View Full Code Here

      return values;
    }
    catch (Exception e)
    {
      log.error("getChartValues", e);
      throw new ProviderException(LocalStrings.ERROR_SERVERSIDE);
    }
    finally
    {
      try
      {
View Full Code Here

    return dataset;
  }

  public List buildParameterList(Report report) throws ProviderException
  {
    throw new ProviderException("ChartReportEngine: buildParameterList not implemented.");
 
View Full Code Here

  {
    File file = new File(directoryProvider.getReportDirectory());
   
    if (!file.exists())
    {
      throw new ProviderException(
          "BaseDirectory Invalid: Set baseDirectory in openreports.properties to full path "
              + " of directory containing your JasperReports files ");
    }
   
    File[] files = file.listFiles();
View Full Code Here

     
      return (Report) criteria.uniqueResult();
    }
    catch (HibernateException he)
    {
      throw new ProviderException(he);
    }
    finally
    {
      hibernateProvider.closeSession(session);
    }
View Full Code Here

    {
      hibernateProvider.rollbackTransaction(tx);
           
      if (he.getCause() != null && he.getCause().getMessage() != null && he.getCause().getMessage().toUpperCase().indexOf("CONSTRAINT") > 0)
      {
        throw new ProviderException(LocalStrings.ERROR_REPORT_DELETION);
      }
     
      log.error("deleteReport", he);     
      throw new ProviderException(LocalStrings.ERROR_SERVERSIDE);
    }
    finally
    {
      hibernateProvider.closeSession(session);
    }
View Full Code Here

           
            return objects;           
    }
    catch (Exception he)
    {
      throw new ProviderException(he);
    }
    finally
    {
      hibernateProvider.closeSession(session);
    }
View Full Code Here

           
            return formatTags(criteria.list());
        }
        catch (HibernateException he)
        {
            throw new ProviderException(he);
        }
        finally
        {
            hibernateProvider.closeSession(session);
        }
View Full Code Here

           
            return formatTags(query.list());
        }
        catch (HibernateException he)
        {          
            throw new ProviderException(he);
        }
        finally
        {
            hibernateProvider.closeSession(session);
        }     
View Full Code Here

TOP

Related Classes of org.efs.openreports.providers.ProviderException

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.