Class CronJobLogDao
- java.lang.Object
-
- ch.colabproject.colab.api.persistence.jpa.monitoring.CronJobLogDao
-
public class CronJobLogDao extends Object
Cronjob logs persistence- Author:
- mikkelvestergaard
-
-
Constructor Summary
Constructors Constructor Description CronJobLogDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CronJobLog>
findAllCronJobLogs()
Get all cronJobLogsCronJobLog
findCronJobLogByName(CronJobLogName jobName)
Find a cronJobLog by namevoid
persistCronJobLog(CronJobLog cronJobLog)
Persist the cron job log to the database
-
-
-
Method Detail
-
findAllCronJobLogs
public List<CronJobLog> findAllCronJobLogs()
Get all cronJobLogs- Returns:
- list of all cronJobLogs
-
findCronJobLogByName
public CronJobLog findCronJobLogByName(CronJobLogName jobName)
Find a cronJobLog by name- Parameters:
jobName
- the name of the cronJobLog- Returns:
- the cronJobLog or null if not found
-
persistCronJobLog
public void persistCronJobLog(CronJobLog cronJobLog)
Persist the cron job log to the database- Parameters:
cronJobLog
- the cron job log to persist
-
-