Package com.atlassian.bamboo.build
Class PlanBranchPullRequestDaoImpl
java.lang.Object
com.atlassian.bamboo.build.PlanBranchPullRequestDaoImpl
- All Implemented Interfaces:
PlanBranchPullRequestDao
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull MutablePlanBranchPullRequest
create
(@NotNull ChainBranch chainBranch, @NotNull MutableVcsPullRequest vcsPullRequest) boolean
deleteForChainBranch
(long branchId) boolean
deleteForChainBranch
(@NotNull PlanKey planKey) 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)
-
Constructor Details
-
PlanBranchPullRequestDaoImpl
public PlanBranchPullRequestDaoImpl()
-
-
Method Details
-
findForChainBranch
- Specified by:
findForChainBranch
in interfacePlanBranchPullRequestDao
-
findForChainBranch
@NotNull public @NotNull Optional<MutablePlanBranchPullRequest> findForChainBranch(@NotNull @NotNull PlanKey branchKey) - Specified by:
findForChainBranch
in interfacePlanBranchPullRequestDao
-
findForChainAndPullRequest
@NotNull public @NotNull Optional<MutablePlanBranchPullRequest> findForChainAndPullRequest(long chainId, long pullRequestId) - Specified by:
findForChainAndPullRequest
in interfacePlanBranchPullRequestDao
-
findForChain
- Specified by:
findForChain
in interfacePlanBranchPullRequestDao
-
findForChainAndPullRequest
@NotNull public @NotNull Optional<MutablePlanBranchPullRequest> findForChainAndPullRequest(@NotNull @NotNull PlanKey chainKey, long pullRequestId) - Specified by:
findForChainAndPullRequest
in interfacePlanBranchPullRequestDao
-
findForPullRequest
- Specified by:
findForPullRequest
in interfacePlanBranchPullRequestDao
-
findAll
- Specified by:
findAll
in interfacePlanBranchPullRequestDao
-
create
@NotNull public @NotNull MutablePlanBranchPullRequest create(@NotNull @NotNull ChainBranch chainBranch, @NotNull @NotNull MutableVcsPullRequest vcsPullRequest) - Specified by:
create
in interfacePlanBranchPullRequestDao
- Returns:
- newly created link between chain branch and pull request
-
deleteForChainBranch
public boolean deleteForChainBranch(long branchId) - Specified by:
deleteForChainBranch
in interfacePlanBranchPullRequestDao
- Returns:
- true if a link was found and deleted
-
deleteForChainBranch
- Specified by:
deleteForChainBranch
in interfacePlanBranchPullRequestDao
- Returns:
- true if a link was found and deleted
-
deleteForVcsPullRequest
public int deleteForVcsPullRequest(long pullRequestId) - Specified by:
deleteForVcsPullRequest
in interfacePlanBranchPullRequestDao
- Returns:
- number of deleted links
-