Class SchedulerRunDetailsDao
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao<T>
-
- com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao<T>
-
- com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateObjectDao<SchedulerRunDetails>
-
- com.atlassian.confluence.impl.schedule.caesium.SchedulerRunDetailsDao
-
- All Implemented Interfaces:
ObjectDao
,VersionedObjectDao<SchedulerRunDetails>
,ObjectDaoInternal<SchedulerRunDetails>
,VersionedObjectDaoInternal<SchedulerRunDetails>
,com.atlassian.scheduler.core.spi.RunDetailsDao
,org.springframework.beans.factory.InitializingBean
@Transactional public class SchedulerRunDetailsDao extends ConfluenceHibernateObjectDao<SchedulerRunDetails> implements com.atlassian.scheduler.core.spi.RunDetailsDao
- Since:
- 5.10
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao
HibernateObjectDao.Cacheability
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
cacheFactory, confluenceUserDao
-
-
Constructor Summary
Constructors Constructor Description SchedulerRunDetailsDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRunDetails(com.atlassian.scheduler.config.JobId jobId, com.atlassian.scheduler.status.RunDetails runDetails)
com.atlassian.scheduler.status.RunDetails
getLastRunForJob(com.atlassian.scheduler.config.JobId jobId)
com.atlassian.scheduler.status.RunDetails
getLastSuccessfulRunForJob(com.atlassian.scheduler.config.JobId jobId)
Class<SchedulerRunDetails>
getPersistentClass()
Gets the type ofEntityObject
this Dao works with.-
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, saveEntity, setCacheFactory, setConfluenceUserDao, updateEntityModificationData, updateModificationData
-
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, getHibernateTemplate, getSessionFactory, index, indexEntity, refresh, refreshEntity, reIndex, reIndexEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity, setEventPublisher, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.internal.persistence.ObjectDaoInternal
findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
-
-
-
-
Method Detail
-
getPersistentClass
public Class<SchedulerRunDetails> getPersistentClass()
Description copied from interface:ObjectDaoInternal
Gets the type ofEntityObject
this Dao works with.- Specified by:
getPersistentClass
in interfaceObjectDao
- Specified by:
getPersistentClass
in interfaceObjectDaoInternal<SchedulerRunDetails>
- Returns:
- the type
-
getLastRunForJob
public com.atlassian.scheduler.status.RunDetails getLastRunForJob(com.atlassian.scheduler.config.JobId jobId)
- Specified by:
getLastRunForJob
in interfacecom.atlassian.scheduler.core.spi.RunDetailsDao
-
getLastSuccessfulRunForJob
public com.atlassian.scheduler.status.RunDetails getLastSuccessfulRunForJob(com.atlassian.scheduler.config.JobId jobId)
- Specified by:
getLastSuccessfulRunForJob
in interfacecom.atlassian.scheduler.core.spi.RunDetailsDao
-
addRunDetails
public void addRunDetails(com.atlassian.scheduler.config.JobId jobId, com.atlassian.scheduler.status.RunDetails runDetails)
- Specified by:
addRunDetails
in interfacecom.atlassian.scheduler.core.spi.RunDetailsDao
-
-