|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChainResultDao
DAO for ChainResult
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 |
boolean |
hasResults(Chain chain)
Test if chain has any results |
void |
save(ChainResult chainResult)
Save a ChainResult |
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao |
---|
findById |
Methods inherited from interface bucket.core.persistence.ObjectDao |
---|
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw |
Method Detail |
---|
@NotNull java.util.List<ChainResult> getAllResults()
ChainResult
void save(@NotNull ChainResult chainResult)
ChainResult
chainResult
- ChainResult to be saved@Nullable ChainResult getChainResult(@NotNull Chain chain, int chainNumber)
ChainResult
chain
- Chain and chain numberchainNumber
- Chain and chain number
@Nullable ChainResult getChainResult(@NotNull PlanResultKey planResultKey)
PlanResultKey
planResultKey
-
@NotNull java.util.List<ChainResult> getAllChainResults(@NotNull Chain chain)
ChainResult
chain
- Chain of which results shall be retrieved
@NotNull java.util.List<ChainResult> getNChainResults(@NotNull Chain chain, int firstResult, int maxResults)
ChainResult
s in PENDING state are left out of the results
chain
- Chain of which chainNumber result has to be retrievedfirstResult
- number of results to skipmaxResults
- number of results to retrieve
boolean hasResults(@NotNull Chain chain)
chain
- Chain which has to be tested
int countChainResults(@NotNull Chain chain)
chain
- Chain of which results has to be counted
@NotNull java.util.Collection<ChainResult> getAllPendingChainResults()
ChainResult
s in a BuildState.PENDING
state
@Nullable ChainStageResult getChainStageResultById(@NotNull long id)
ChainStageResult
by its id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |