|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.hibernate.support.HibernateDaoSupport com.atlassian.hibernate.HibernateObjectDao com.atlassian.bamboo.persistence.BambooHibernateObjectDao com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationHibernateDao
public class ElasticImageConfigurationHibernateDao
Field Summary |
---|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
ElasticImageConfigurationHibernateDao()
|
Method Summary | |
---|---|
ElasticImageConfiguration |
findById(long id)
Gets the object from its id |
java.util.List<ElasticImageConfiguration> |
getAll()
Get all Elastic Image Configuration objects |
int |
getBuildCountForImageConfigurationId(long id)
Get the number of elastic agents associated with a given image configuration |
int |
getElasticAgentCountForImageConfigurationId(long id)
Returns all elastic agents associated with a specific image configuration |
java.util.List<ElasticAgentDefinition> |
getElasticAgentsForImageConfigurationId(long id)
Retrieves a list of elastic agenst associated with the given elastic image configuration |
java.util.List<ElasticImageConfiguration> |
getElasticImageConfigurationByAmi(java.lang.String amiId)
Retrieves a list of all elastic image configurations that use a specific image. |
ElasticImageConfiguration |
getElasticImageConfigurationByName(java.lang.String name)
Finds an elastic configuration by name. |
java.lang.Class<ElasticImageConfigurationImpl> |
getPersistentClass()
|
ElasticImageConfiguration |
getShippedWithBamboo()
|
void |
remove(ElasticImageConfiguration elasticImageConfiguration)
|
void |
save(ElasticImageConfiguration elasticImageConfiguration)
|
Methods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao |
---|
executeCountQuery, executeReturnLong, 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 bucket.core.persistence.ObjectDao |
---|
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw |
Constructor Detail |
---|
public ElasticImageConfigurationHibernateDao()
Method Detail |
---|
@NotNull public java.util.List<ElasticImageConfiguration> getAll()
ElasticImageConfigurationDao
getAll
in interface ElasticImageConfigurationDao
public int getElasticAgentCountForImageConfigurationId(long id)
ElasticImageConfigurationDao
getElasticAgentCountForImageConfigurationId
in interface ElasticImageConfigurationDao
id
- for the image configuration
public java.util.List<ElasticAgentDefinition> getElasticAgentsForImageConfigurationId(long id)
ElasticImageConfigurationDao
getElasticAgentsForImageConfigurationId
in interface ElasticImageConfigurationDao
id
- of the elasticImageConfiguration
public java.util.List<ElasticImageConfiguration> getElasticImageConfigurationByAmi(java.lang.String amiId)
getElasticImageConfigurationByAmi
in interface ElasticImageConfigurationDao
amiId
- to filter with
public int getBuildCountForImageConfigurationId(long id)
ElasticImageConfigurationDao
getBuildCountForImageConfigurationId
in interface ElasticImageConfigurationDao
id
- for the image configuration
public java.lang.Class<ElasticImageConfigurationImpl> getPersistentClass()
getPersistentClass
in interface bucket.core.persistence.ObjectDao
public void save(@NotNull ElasticImageConfiguration elasticImageConfiguration)
save
in interface ElasticImageConfigurationDao
public void remove(@NotNull ElasticImageConfiguration elasticImageConfiguration)
remove
in interface ElasticImageConfigurationDao
@Nullable public ElasticImageConfiguration getShippedWithBamboo()
getShippedWithBamboo
in interface ElasticImageConfigurationDao
public ElasticImageConfiguration getElasticImageConfigurationByName(java.lang.String name)
ElasticImageConfigurationDao
getElasticImageConfigurationByName
in interface ElasticImageConfigurationDao
name
- to look for
public ElasticImageConfiguration findById(long id)
BambooObjectDao
findById
in interface ElasticImageConfigurationDao
findById
in interface BambooObjectDao
findById
in class BambooHibernateObjectDao
id
- Elastic Image Configuration's id
BambooObject
. null if not found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |