|
||||||||||
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.buildqueue.dao.AgentHibernateDao
public class AgentHibernateDao
Field Summary |
---|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
AgentHibernateDao()
|
Method Summary | |
---|---|
PipelineDefinition |
findAgentByName(java.lang.String name)
Retrieve a pipelineDefinition by name. |
java.util.List<PipelineDefinition> |
findAll()
|
java.util.List<PipelineDefinition> |
findAllAgents()
Retrieves all agents(); |
java.util.Set<PipelineDefinition> |
findAllAgentsForAgentIds(java.util.Collection<java.lang.Long> agentIds)
Return a list of agents by their ids |
java.util.List<PipelineDefinition> |
findAllAgentsWithNameLike(java.lang.String nameLike)
Retrun a list of agents whose name is like the provided string. |
java.util.List<ElasticAgentDefinition> |
findAllElasticAgents()
Retrieves all elastic agents |
java.util.List<LocalAgentDefinition> |
findAllLocalAgents()
Retrieves all local agents |
java.util.List<RemoteAgentDefinition> |
findAllRemoteAgents()
Retrieves all remote agents |
PipelineDefinition |
getAgentById(long id)
Retrieve the agentDefinition object. |
LocalAgentDefinition |
getLocalAgentById(long id)
Retrieve the localAgentDefinition |
java.lang.Class |
getPersistentClass()
|
RemoteAgentDefinition |
getRemoteAgentById(long id)
Retrieve the remoteAgentDefinition |
PipelineDefinition |
saveAndReturn(PipelineDefinition pipelineDefinition)
Saves the passed definition and returns a new copy of the updated pipeline definition |
Methods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao |
---|
executeCountQuery, executeReturnLong, findById, findById |
Methods inherited from class com.atlassian.hibernate.HibernateObjectDao |
---|
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 |
---|
findAllSorted, refresh, remove, replicate, save, saveRaw |
Constructor Detail |
---|
public AgentHibernateDao()
Method Detail |
---|
public java.lang.Class getPersistentClass()
getPersistentClass
in interface bucket.core.persistence.ObjectDao
@NotNull public PipelineDefinition saveAndReturn(@NotNull PipelineDefinition pipelineDefinition)
AgentDao
saveAndReturn
in interface AgentDao
pipelineDefinition
- to save
public PipelineDefinition getAgentById(long id)
AgentDao
getAgentById
in interface AgentDao
id
- - the id for the agent to be retrieved
public LocalAgentDefinition getLocalAgentById(long id)
AgentDao
getLocalAgentById
in interface AgentDao
id
- of the agent
public RemoteAgentDefinition getRemoteAgentById(long id)
AgentDao
getRemoteAgentById
in interface AgentDao
id
- of the agent
public java.util.List<PipelineDefinition> findAll()
findAll
in interface bucket.core.persistence.ObjectDao
findAll
in class com.atlassian.hibernate.HibernateObjectDao
public java.util.List<PipelineDefinition> findAllAgents()
AgentDao
findAllAgents
in interface AgentDao
public java.util.List<RemoteAgentDefinition> findAllRemoteAgents()
AgentDao
findAllRemoteAgents
in interface AgentDao
public java.util.List<LocalAgentDefinition> findAllLocalAgents()
AgentDao
findAllLocalAgents
in interface AgentDao
public java.util.List<ElasticAgentDefinition> findAllElasticAgents()
AgentDao
findAllElasticAgents
in interface AgentDao
@NotNull public java.util.List<PipelineDefinition> findAllAgentsWithNameLike(@NotNull java.lang.String nameLike)
AgentDao
findAllAgentsWithNameLike
in interface AgentDao
nameLike
- the string to match
public java.util.Set<PipelineDefinition> findAllAgentsForAgentIds(@NotNull java.util.Collection<java.lang.Long> agentIds)
AgentDao
findAllAgentsForAgentIds
in interface AgentDao
PipelineDefinition
@Nullable public PipelineDefinition findAgentByName(@NotNull java.lang.String name)
AgentDao
findAgentByName
in interface AgentDao
name
- of the agent to find
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |