Package org.efs.openreports.providers

Examples of org.efs.openreports.providers.ProviderException


    {
      hibernateProvider.rollbackTransaction(tx);

      he.printStackTrace();

      throw new ProviderException(he.getMessage());
    }
    finally
    {
      hibernateProvider.closeSession(session);
    }
View Full Code Here


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

    {
      hibernateProvider.delete(reportChart);
    }
    catch (ConstraintException ce)
    {
      throw new ProviderException(LocalStrings.ERROR_CHART_DELETION);
    }
  } 
View Full Code Here

      {
        cronTrigger.setCronExpression(cronExpression.toString());
      }
      catch(ParseException pe)
      {
        throw new ProviderException(pe);
      }     
           
      cronTrigger.setStartTime(reportSchedule.getStartDate());
            cronTrigger.setPriority(reportSchedule.getSchedulePriority());
            cronTrigger.getJobDataMap().put(reportSchedule.getScheduleName(), reportSchedule.getRequestId());

            try
            {
                scheduler.scheduleJob(jobDetail, cronTrigger);
            }
            catch(SchedulerException e)
            {
                throw new ProviderException(e);
            }
    }   
    else
    {
      // default to run once...
      SimpleTrigger trigger = new SimpleTrigger(reportSchedule.getScheduleName(),
          reportSchedule.getScheduleGroup(), reportSchedule.getStartDateTime(), null,
          0, 0L);
            trigger.setPriority(reportSchedule.getSchedulePriority());
            trigger.getJobDataMap().put(reportSchedule.getScheduleName(), reportSchedule.getRequestId());

            try
            {
                scheduler.scheduleJob(jobDetail, trigger);
            }
            catch(SchedulerException e)
            {
                throw new ProviderException(e);
            }
    }   
  }
View Full Code Here

          }
        }   
        }
        catch(SchedulerException e)
        {
            throw new ProviderException(e);
        }

    return scheduledReports;
  }
View Full Code Here

            String group = reportUser.getId().toString();
            scheduler.deleteJob(name, group)
        }
        catch(SchedulerException e)
        {
            throw new ProviderException(e);
        }
  }
View Full Code Here

           
        return reportSchedule;
        }
        catch(SchedulerException e)
        {
            throw new ProviderException(e);
        }
  }
View Full Code Here

        {
            scheduler.pauseJob(name, reportUser.getId().toString());
        }
        catch(SchedulerException e)
        {
            throw new ProviderException(e);
        }
  }
View Full Code Here

        {
            scheduler.resumeJob(name, reportUser.getId().toString());
        }
        catch(SchedulerException e)
        {
            throw new ProviderException(e);
        }
  } 
View Full Code Here

        {
            state = scheduler.getTriggerState(name, group);
        }
        catch(SchedulerException e)
        {
            throw new ProviderException(e);
        }
       
        switch (state)
        {
            case Trigger.STATE_BLOCKED:
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.