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
-
-
Constructor Summary
Constructors Constructor Description ElasticInstanceScheduleDaoImpl(org.hibernate.SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull List<ElasticInstanceSchedule>
findElasticInstanceScheduleByImageConfiguration(@NotNull ElasticImageConfiguration elasticImageConfiguration)
Returns schedules related toElasticImageConfiguration
(both enabled and disabled)Class
getPersistentClass()
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findById
-
-
-
-
Method Detail
-
getPersistentClass
public Class getPersistentClass()
- Specified by:
getPersistentClass
in interfacebucket.core.persistence.ObjectDao
-
remove
public void remove(@NotNull @NotNull ElasticInstanceSchedule elasticInstanceSchedule)
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
-
-