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
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull List<ElasticInstanceSchedule>findElasticInstanceScheduleByImageConfiguration(@NotNull ElasticImageConfiguration elasticImageConfiguration) Returns schedules related toElasticImageConfiguration(both enabled and disabled)voidremove(@NotNull ElasticInstanceSchedule elasticInstanceSchedule) RemoveElasticInstanceScheduleMethods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao
findAll, findAllSorted, findById, findById, refresh, remove, replicate, save, saveRaw, updateModificationDataMethods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactoryMethods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDaoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findByIdMethods 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:
getPersistentClassin interfacebucket.core.persistence.ObjectDao
-
remove
Description copied from interface:ElasticInstanceScheduleDaoRemoveElasticInstanceSchedule- Specified by:
removein interfaceElasticInstanceScheduleDao- Parameters:
elasticInstanceSchedule-ElasticInstanceScheduleto be removed
-
findElasticInstanceScheduleByImageConfiguration
@NotNull public @NotNull List<ElasticInstanceSchedule> findElasticInstanceScheduleByImageConfiguration(@NotNull @NotNull ElasticImageConfiguration elasticImageConfiguration) Description copied from interface:ElasticInstanceScheduleDaoReturns schedules related toElasticImageConfiguration(both enabled and disabled)- Specified by:
findElasticInstanceScheduleByImageConfigurationin interfaceElasticInstanceScheduleDao- Parameters:
elasticImageConfiguration-ElasticImageConfigurationobject- Returns:
- List of
ElasticInstanceScheduleor empty list if nothing was found
-