|
||||||||||
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.bamboo.persistence3.StatelessSessionHibernateDaoSupport com.atlassian.bamboo.buildqueue.dao.AgentAssignmentDaoImpl
public class AgentAssignmentDaoImpl
Field Summary |
---|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
AgentAssignmentDaoImpl()
|
Method Summary | |
---|---|
java.util.List<AgentAssignment> |
findAll()
|
AgentAssignment |
getAgentAssignment(long agentAssignmentId)
Get a single agent assignment by id |
java.util.List<AgentAssignment> |
getAssignmentsForAgent(long agentId)
Get all assignments directly referencing and agent |
java.util.List<AgentAssignment> |
getAssignmentsForEnvironment(long environmentId)
Get all assignments directly reference an environment |
java.util.List<AgentAssignment> |
getAssignmentsForExecutable(long executableId,
AgentAssignment.ExecutableType executableType)
Get all assignments that directly reference a specific Executable (Environment, ob etc) |
java.util.List<AgentAssignment> |
getAssignmentsForExecutor(long executorId,
AgentAssignment.ExecutorType executorType)
Get all assignments that directly reference a specific Executor (Agent, Image etc) |
java.util.List<AgentAssignment> |
getAssignmentsForImage(long imageConfigurationId)
Get all assignments directly reference to an image |
void |
removeAll(java.lang.Iterable<? extends BambooIdProvider> agentAssignmentIds)
Remove a list of agent assignments |
AgentAssignment |
save(AgentAssignment agentAssignment)
Save an agent assignment |
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport |
---|
getCacheAwareHibernateTemplate |
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 |
Constructor Detail |
---|
public AgentAssignmentDaoImpl()
Method Detail |
---|
@NotNull public AgentAssignment save(@NotNull AgentAssignment agentAssignment)
AgentAssignmentDao
save
in interface AgentAssignmentDao
agentAssignment
- to save
public void removeAll(@NotNull java.lang.Iterable<? extends BambooIdProvider> agentAssignmentIds)
AgentAssignmentDao
removeAll
in interface AgentAssignmentDao
agentAssignmentIds
- to be removedpublic AgentAssignment getAgentAssignment(long agentAssignmentId)
AgentAssignmentDao
getAgentAssignment
in interface AgentAssignmentDao
agentAssignmentId
- of assignment to retrieve
@NotNull public java.util.List<AgentAssignment> getAssignmentsForAgent(long agentId)
AgentAssignmentDao
getAssignmentsForAgent
in interface AgentAssignmentDao
agentId
- that would be referenced
@NotNull public java.util.List<AgentAssignment> getAssignmentsForImage(long imageConfigurationId)
AgentAssignmentDao
getAssignmentsForImage
in interface AgentAssignmentDao
imageConfigurationId
- that would be referenced
@NotNull public java.util.List<AgentAssignment> getAssignmentsForEnvironment(long environmentId)
AgentAssignmentDao
getAssignmentsForEnvironment
in interface AgentAssignmentDao
environmentId
- that would be referenced
@NotNull public java.util.List<AgentAssignment> getAssignmentsForExecutor(long executorId, @NotNull AgentAssignment.ExecutorType executorType)
AgentAssignmentDao
getAssignmentsForExecutor
in interface AgentAssignmentDao
executorId
- id of the executorexecutorType
- type of the executor
@NotNull public java.util.List<AgentAssignment> getAssignmentsForExecutable(long executableId, @NotNull AgentAssignment.ExecutableType executableType)
AgentAssignmentDao
getAssignmentsForExecutable
in interface AgentAssignmentDao
executableId
- id of the executableexecutableType
- type of the executable
@NotNull public java.util.List<AgentAssignment> findAll()
findAll
in interface AgentAssignmentDao
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |