Package com.atlassian.bamboo.build
Interface PlanBranchPullRequestDao
-
- All Known Implementing Classes:
PlanBranchPullRequestDaoImpl
@Internal public interface PlanBranchPullRequestDao
DAO for managingPlanBranchPullRequest
entities.- Since:
- 6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull MutablePlanBranchPullRequest
create(@NotNull ChainBranch chainBranch, @NotNull MutableVcsPullRequest vcsPullRequest)
boolean
deleteForChainBranch(long branchId)
boolean
deleteForChainBranch(@NotNull PlanKey branchKey)
int
deleteForVcsPullRequest(long pullRequestId)
@NotNull List<MutablePlanBranchPullRequest>
findAll()
@NotNull List<MutablePlanBranchPullRequest>
findForChain(long chainId)
@NotNull Optional<MutablePlanBranchPullRequest>
findForChainAndPullRequest(long chainId, long pullRequestId)
@NotNull Optional<MutablePlanBranchPullRequest>
findForChainAndPullRequest(@NotNull PlanKey chainKey, long pullRequestId)
@NotNull Optional<MutablePlanBranchPullRequest>
findForChainBranch(long branchId)
@NotNull Optional<MutablePlanBranchPullRequest>
findForChainBranch(@NotNull PlanKey branchKey)
@NotNull List<MutablePlanBranchPullRequest>
findForPullRequest(long pullRequestId)
-
-
-
Method Detail
-
findForChainBranch
@NotNull @NotNull Optional<MutablePlanBranchPullRequest> findForChainBranch(long branchId)
-
findForChainBranch
@NotNull @NotNull Optional<MutablePlanBranchPullRequest> findForChainBranch(@NotNull @NotNull PlanKey branchKey)
-
findForChainAndPullRequest
@NotNull @NotNull Optional<MutablePlanBranchPullRequest> findForChainAndPullRequest(long chainId, long pullRequestId)
-
findForChain
@NotNull @NotNull List<MutablePlanBranchPullRequest> findForChain(long chainId)
-
findForChainAndPullRequest
@NotNull @NotNull Optional<MutablePlanBranchPullRequest> findForChainAndPullRequest(@NotNull @NotNull PlanKey chainKey, long pullRequestId)
-
findForPullRequest
@NotNull @NotNull List<MutablePlanBranchPullRequest> findForPullRequest(long pullRequestId)
-
findAll
@NotNull @NotNull List<MutablePlanBranchPullRequest> findAll()
-
create
@NotNull @NotNull MutablePlanBranchPullRequest create(@NotNull @NotNull ChainBranch chainBranch, @NotNull @NotNull MutableVcsPullRequest vcsPullRequest)
- Returns:
- newly created link between chain branch and pull request
- Throws:
IllegalStateException
- if any pull request is already linked to the given plan branch
-
deleteForChainBranch
boolean deleteForChainBranch(long branchId)
- Returns:
- true if a link was found and deleted
-
deleteForChainBranch
boolean deleteForChainBranch(@NotNull @NotNull PlanKey branchKey)
- Returns:
- true if a link was found and deleted
-
deleteForVcsPullRequest
int deleteForVcsPullRequest(long pullRequestId)
- Returns:
- number of deleted links
-
-