Package com.atlassian.bamboo.build
Interface PlanBranchPullRequestDao
- All Known Implementing Classes:
PlanBranchPullRequestDaoImpl
@Internal
public interface PlanBranchPullRequestDao
DAO for managing
PlanBranchPullRequest
entities.- Since:
- 6.0
-
Method Summary
Modifier and TypeMethodDescription@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 Details
-
findForChainBranch
-
findForChainBranch
@NotNull @NotNull Optional<MutablePlanBranchPullRequest> findForChainBranch(@NotNull @NotNull PlanKey branchKey) -
findForChainAndPullRequest
@NotNull @NotNull Optional<MutablePlanBranchPullRequest> findForChainAndPullRequest(long chainId, long pullRequestId) -
findForChain
-
findForChainAndPullRequest
@NotNull @NotNull Optional<MutablePlanBranchPullRequest> findForChainAndPullRequest(@NotNull @NotNull PlanKey chainKey, long pullRequestId) -
findForPullRequest
-
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
- Returns:
- true if a link was found and deleted
-
deleteForVcsPullRequest
int deleteForVcsPullRequest(long pullRequestId) - Returns:
- number of deleted links
-