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 booleancreate(@NonNull com.atlassian.scheduler.caesium.spi.ClusteredJob clusteredJob)booleandelete(@NonNull com.atlassian.scheduler.config.JobId jobId)@Nullable com.atlassian.scheduler.caesium.spi.ClusteredJobfind(@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 DategetNextRunTime(@NonNull com.atlassian.scheduler.config.JobId jobId)Class<SchedulerClusteredJob>getPersistentClass()Gets the type ofEntityObjectthis Dao works with.@Nullable LonggetVersion(@NonNull com.atlassian.scheduler.config.JobId jobId)@NonNull Map<com.atlassian.scheduler.config.JobId,Date>refresh()booleanupdateNextRunTime(@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:ObjectDaoInternalGets the type ofEntityObjectthis Dao works with.- Specified by:
getPersistentClassin interfaceObjectDao- Specified by:
getPersistentClassin interfaceObjectDaoInternal<SchedulerClusteredJob>- Returns:
- the type
-
getNextRunTime
public @Nullable Date getNextRunTime(@NonNull com.atlassian.scheduler.config.JobId jobId)
- Specified by:
getNextRunTimein interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
getVersion
public @Nullable Long getVersion(@NonNull com.atlassian.scheduler.config.JobId jobId)
- Specified by:
getVersionin 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:
findin 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:
findByJobRunnerKeyin interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
refresh
public @NonNull Map<com.atlassian.scheduler.config.JobId,Date> refresh()
- Specified by:
refreshin interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
findAllJobRunnerKeys
public @NonNull Set<com.atlassian.scheduler.config.JobRunnerKey> findAllJobRunnerKeys()
- Specified by:
findAllJobRunnerKeysin interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
create
public boolean create(@NonNull com.atlassian.scheduler.caesium.spi.ClusteredJob clusteredJob)
- Specified by:
createin interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
updateNextRunTime
public boolean updateNextRunTime(@NonNull com.atlassian.scheduler.config.JobId jobId, @Nullable Date nextRunTime, long expectedVersion)- Specified by:
updateNextRunTimein interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
delete
public boolean delete(@NonNull com.atlassian.scheduler.config.JobId jobId)
- Specified by:
deletein interfacecom.atlassian.scheduler.caesium.spi.ClusteredJobDao
-
-