com.atlassian.bamboo.agent.elastic.schedule
Class ElasticInstanceScheduleDaoImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.hibernate.HibernateObjectDao
              extended by com.atlassian.bamboo.persistence.BambooHibernateObjectDao
                  extended by 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 com.atlassian.hibernate.HibernateObjectDao
log
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ElasticInstanceScheduleDaoImpl(net.sf.hibernate.SessionFactory sessionFactory)
           
 
Method Summary
 java.util.List<ElasticInstanceSchedule> findElasticInstanceScheduleByImageConfiguration(ElasticImageConfiguration elasticImageConfiguration)
          Returns schedules related to ElasticImageConfiguration (both enabled and disabled)
 java.lang.Class getPersistentClass()
           
 void remove(ElasticInstanceSchedule elasticInstanceSchedule)
          Remove ElasticInstanceSchedule
 
Methods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao
executeCountQuery, executeReturnLong, findById, findById
 
Methods inherited from class com.atlassian.hibernate.HibernateObjectDao
findAll, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, updateModificationData
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, 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 Detail

ElasticInstanceScheduleDaoImpl

public ElasticInstanceScheduleDaoImpl(net.sf.hibernate.SessionFactory sessionFactory)
Method Detail

getPersistentClass

public java.lang.Class getPersistentClass()
Specified by:
getPersistentClass in interface bucket.core.persistence.ObjectDao

remove

public void remove(@NotNull
                   ElasticInstanceSchedule elasticInstanceSchedule)
Description copied from interface: ElasticInstanceScheduleDao
Remove ElasticInstanceSchedule

Specified by:
remove in interface ElasticInstanceScheduleDao
Parameters:
elasticInstanceSchedule - ElasticInstanceSchedule to be removed

findElasticInstanceScheduleByImageConfiguration

@NotNull
public java.util.List<ElasticInstanceSchedule> findElasticInstanceScheduleByImageConfiguration(@NotNull
                                                                                                       ElasticImageConfiguration elasticImageConfiguration)
Description copied from interface: ElasticInstanceScheduleDao
Returns schedules related to ElasticImageConfiguration (both enabled and disabled)

Specified by:
findElasticInstanceScheduleByImageConfiguration in interface ElasticInstanceScheduleDao
Parameters:
elasticImageConfiguration - ElasticImageConfiguration object
Returns:
List of ElasticInstanceSchedule or empty list if nothing was found


Copyright © 2011 Atlassian. All Rights Reserved.