Class ElasticInstanceScheduleDaoImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence.BambooHibernateObjectDao
com.atlassian.bamboo.agent.elastic.schedule.ElasticInstanceScheduleDaoImpl
- All Implemented Interfaces:
bucket.core.persistence.ObjectDao
,ElasticInstanceScheduleDao
,BambooObjectDao
,org.springframework.beans.factory.InitializingBean
public class ElasticInstanceScheduleDaoImpl
extends BambooHibernateObjectDao
implements ElasticInstanceScheduleDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull List<ElasticInstanceSchedule>
findElasticInstanceScheduleByImageConfiguration
(@NotNull ElasticImageConfiguration elasticImageConfiguration) Returns schedules related toElasticImageConfiguration
(both enabled and disabled)void
remove
(@NotNull ElasticInstanceSchedule elasticInstanceSchedule) RemoveElasticInstanceSchedule
Methods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao
findAll, findAllSorted, findById, findById, refresh, remove, replicate, save, saveRaw, updateModificationData
Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findById
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw
-
Constructor Details
-
ElasticInstanceScheduleDaoImpl
public ElasticInstanceScheduleDaoImpl(org.hibernate.SessionFactory sessionFactory)
-
-
Method Details
-
getPersistentClass
- Specified by:
getPersistentClass
in interfacebucket.core.persistence.ObjectDao
-
remove
Description copied from interface:ElasticInstanceScheduleDao
RemoveElasticInstanceSchedule
- Specified by:
remove
in interfaceElasticInstanceScheduleDao
- Parameters:
elasticInstanceSchedule
-ElasticInstanceSchedule
to be removed
-
findElasticInstanceScheduleByImageConfiguration
@NotNull public @NotNull List<ElasticInstanceSchedule> findElasticInstanceScheduleByImageConfiguration(@NotNull @NotNull ElasticImageConfiguration elasticImageConfiguration) Description copied from interface:ElasticInstanceScheduleDao
Returns schedules related toElasticImageConfiguration
(both enabled and disabled)- Specified by:
findElasticInstanceScheduleByImageConfiguration
in interfaceElasticInstanceScheduleDao
- Parameters:
elasticImageConfiguration
-ElasticImageConfiguration
object- Returns:
- List of
ElasticInstanceSchedule
or empty list if nothing was found
-