|
||||||||||
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.chains.ChainResultHibernateDao
public class ChainResultHibernateDao
Field Summary |
---|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
ChainResultHibernateDao()
|
Method Summary | |
---|---|
int |
countChainResults(Chain chain)
Count number of chain results |
java.util.List<ChainResult> |
getAllChainResults(Chain chain)
Load a saved ChainResult |
java.util.Collection<ChainResult> |
getAllPendingChainResults()
Returns all the ChainResult s in a BuildState.PENDING state |
java.util.List<ChainResult> |
getAllResults()
Returns all ChainResult |
ChainResult |
getChainResult(Chain chain,
int chainNumber)
Load a saved ChainResult |
ChainResult |
getChainResult(PlanResultKey planResultKey)
Get the result by its PlanResultKey |
ChainStageResult |
getChainStageResultById(long id)
Returns a ChainStageResult by its id |
java.util.List<ChainResult> |
getNChainResults(Chain chain,
int firstResult,
int maxResults)
Load list of results related to chain, list is ordered descending by chain number ChainResult s in PENDING state are left out of the results |
java.lang.Class |
getPersistentClass()
|
boolean |
hasResults(Chain chain)
Test if chain has any results |
void |
save(ChainResult chainResult)
Save a ChainResult |
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 |
---|
public ChainResultHibernateDao()
Method Detail |
---|
public java.lang.Class getPersistentClass()
getPersistentClass
in interface bucket.core.persistence.ObjectDao
@Nullable public ChainResult getChainResult(@NotNull Chain chain, int chainNumber)
ChainResultDao
ChainResult
getChainResult
in interface ChainResultDao
chain
- Chain and chain numberchainNumber
- Chain and chain number
public ChainResult getChainResult(@NotNull PlanResultKey planResultKey)
ChainResultDao
PlanResultKey
getChainResult
in interface ChainResultDao
@NotNull public java.util.List<ChainResult> getAllChainResults(@NotNull Chain chain)
ChainResultDao
ChainResult
getAllChainResults
in interface ChainResultDao
chain
- Chain of which results shall be retrieved
@NotNull public java.util.List<ChainResult> getAllResults()
ChainResultDao
ChainResult
getAllResults
in interface ChainResultDao
public void save(@NotNull ChainResult chainResult)
ChainResultDao
ChainResult
save
in interface ChainResultDao
chainResult
- ChainResult to be saved@NotNull public java.util.List<ChainResult> getNChainResults(@NotNull Chain chain, int firstResult, int maxResults)
ChainResultDao
ChainResult
s in PENDING state are left out of the results
getNChainResults
in interface ChainResultDao
chain
- Chain of which chainNumber result has to be retrievedfirstResult
- number of results to skipmaxResults
- number of results to retrieve
public boolean hasResults(@NotNull Chain chain)
ChainResultDao
hasResults
in interface ChainResultDao
chain
- Chain which has to be tested
public int countChainResults(@NotNull Chain chain)
ChainResultDao
countChainResults
in interface ChainResultDao
chain
- Chain of which results has to be counted
@NotNull public java.util.Collection<ChainResult> getAllPendingChainResults()
ChainResultDao
ChainResult
s in a BuildState.PENDING
state
getAllPendingChainResults
in interface ChainResultDao
public ChainStageResult getChainStageResultById(long id)
ChainResultDao
ChainStageResult
by its id
getChainStageResultById
in interface ChainResultDao
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |