Class SchedulerClusteredJobDao
- 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<SchedulerClusteredJob>
-
- com.atlassian.confluence.impl.schedule.caesium.SchedulerClusteredJobDao
-
- All Implemented Interfaces:
ObjectDao
,VersionedObjectDao<SchedulerClusteredJob>
,ObjectDaoInternal<SchedulerClusteredJob>
,VersionedObjectDaoInternal<SchedulerClusteredJob>
,com.atlassian.scheduler.caesium.spi.ClusteredJobDao
,org.springframework.beans.factory.InitializingBean
@Transactional(propagation=REQUIRES_NEW) public class SchedulerClusteredJobDao extends ConfluenceHibernateObjectDao<SchedulerClusteredJob> implements com.atlassian.scheduler.caesium.spi.ClusteredJobDao
- 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 SchedulerClusteredJobDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
create(@NonNull com.atlassian.scheduler.caesium.spi.ClusteredJob clusteredJob)
boolean
delete(@NonNull com.atlassian.scheduler.config.JobId jobId)
@Nullable com.atlassian.scheduler.caesium.spi.ClusteredJob
find(@NonNull com.atlassian.scheduler.config.JobId jobId)
@NonNull Set<com.atlassian.scheduler.config.JobRunnerKey>
findAllJobRunnerKeys()
@NonNull Collection<com.atlassian.scheduler.caesium.spi.ClusteredJob>
findByJobRunnerKey(@NonNull com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey)
@Nullable Date
getNextRunTime(@NonNull com.atlassian.scheduler.config.JobId jobId)
Class<SchedulerClusteredJob>
getPersistentClass()
Gets the type ofEntityObject
this Dao works with.@Nullable Long
getVersion(@NonNull com.atlassian.scheduler.config.JobId jobId)
@NonNull Map<com.atlassian.scheduler.config.JobId,Date>
refresh()
boolean
updateNextRunTime(@NonNull com.atlassian.scheduler.config.JobId jobId, @Nullable Date nextRunTime, long expectedVersion)
-
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<SchedulerClusteredJob> getPersistentClass()
Description copied from interface:ObjectDaoInternal
Gets the type ofEntityObject
this Dao works with.- Specified by:
getPersistentClass
in interfaceObjectDao
- Specified by:
getPersistentClass
in interfaceObjectDaoInternal<SchedulerClusteredJob>
- Returns:
- the type
-
getNextRunTime
public @Nullable Date getNextRunTime(@NonNull com.atlassian.scheduler.config.JobId jobId)
- Specified by:
getNextRunTime
in interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
getVersion
public @Nullable Long getVersion(@NonNull com.atlassian.scheduler.config.JobId jobId)
- Specified by:
getVersion
in interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
find
public @Nullable com.atlassian.scheduler.caesium.spi.ClusteredJob find(@NonNull com.atlassian.scheduler.config.JobId jobId)
- Specified by:
find
in interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
findByJobRunnerKey
public @NonNull Collection<com.atlassian.scheduler.caesium.spi.ClusteredJob> findByJobRunnerKey(@NonNull com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey)
- Specified by:
findByJobRunnerKey
in interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
refresh
public @NonNull Map<com.atlassian.scheduler.config.JobId,Date> refresh()
- Specified by:
refresh
in interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
findAllJobRunnerKeys
public @NonNull Set<com.atlassian.scheduler.config.JobRunnerKey> findAllJobRunnerKeys()
- Specified by:
findAllJobRunnerKeys
in interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
create
public boolean create(@NonNull com.atlassian.scheduler.caesium.spi.ClusteredJob clusteredJob)
- Specified by:
create
in interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
updateNextRunTime
public boolean updateNextRunTime(@NonNull com.atlassian.scheduler.config.JobId jobId, @Nullable Date nextRunTime, long expectedVersion)
- Specified by:
updateNextRunTime
in interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
delete
public boolean delete(@NonNull com.atlassian.scheduler.config.JobId jobId)
- Specified by:
delete
in interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
-