Package com.atlassian.bamboo.build
Class PlanBranchPullRequestDaoImpl
- java.lang.Object
-
- com.atlassian.bamboo.build.PlanBranchPullRequestDaoImpl
-
- All Implemented Interfaces:
PlanBranchPullRequestDao
public class PlanBranchPullRequestDaoImpl extends Object implements PlanBranchPullRequestDao
-
-
Constructor Summary
Constructors Constructor Description PlanBranchPullRequestDaoImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @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)
-
-
-
Method Detail
-
findForChainBranch
@NotNull public @NotNull Optional<MutablePlanBranchPullRequest> findForChainBranch(long branchId)
- 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
@NotNull public @NotNull List<MutablePlanBranchPullRequest> findForChain(long chainId)
- Specified by:
findForChain
in interfacePlanBranchPullRequestDao
-
findForChainAndPullRequest
@NotNull public @NotNull Optional<MutablePlanBranchPullRequest> findForChainAndPullRequest(@NotNull @NotNull PlanKey chainKey, long pullRequestId)
- Specified by:
findForChainAndPullRequest
in interfacePlanBranchPullRequestDao
-
findForPullRequest
@NotNull public @NotNull List<MutablePlanBranchPullRequest> findForPullRequest(long pullRequestId)
- Specified by:
findForPullRequest
in interfacePlanBranchPullRequestDao
-
findAll
@NotNull public @NotNull List<MutablePlanBranchPullRequest> 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
public boolean deleteForChainBranch(@NotNull @NotNull PlanKey planKey)
- 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
-
-