Interface CronJobDao

All Superinterfaces:
Dao
All Known Implementing Classes:
DefaultCronJobDao

public interface CronJobDao extends Dao
The cronjob DAO interface. Used for finding the cronjob and jobs in the backend.
Since:
4.3
Spring Bean ID:
cronJobDao
  • Method Details

    • findCronJobs

      List<CronJobModel> findCronJobs(String code)
      Search with the given code for CronJob items.
      Parameters:
      code - the CronJob code
      Returns:
      a List with CronJobModels. Returns an empty List if nothing was found.
    • findRunningCronJobs

      List<CronJobModel> findRunningCronJobs()
      Finds all CronJobModel instance in state RUNNING or RUNNINGRESTART.
    • isPerformable

      boolean isPerformable(CronJobModel cronJobModel)
      Checks if given cronJobModel as performable or not.
    • isAbortable

      boolean isAbortable(CronJobModel cronJobModel)
      Checks if given cronJobModel as abortable or not.
    • findLastCronJobsWithJob

      default List<CronJobModel> findLastCronJobsWithJob(JobModel jobModel, int limit)
      Finds last CronJobModel linked to given JobModel. Limits results to a given limit