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 MutablePlanBranchPullRequestcreate(@NotNull ChainBranch chainBranch, @NotNull MutableVcsPullRequest vcsPullRequest)booleandeleteForChainBranch(long branchId)booleandeleteForChainBranch(@NotNull PlanKey planKey)intdeleteForVcsPullRequest(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:
findForChainBranchin interfacePlanBranchPullRequestDao
-
findForChainBranch
@NotNull public @NotNull Optional<MutablePlanBranchPullRequest> findForChainBranch(@NotNull @NotNull PlanKey branchKey)
- Specified by:
findForChainBranchin interfacePlanBranchPullRequestDao
-
findForChainAndPullRequest
@NotNull public @NotNull Optional<MutablePlanBranchPullRequest> findForChainAndPullRequest(long chainId, long pullRequestId)
- Specified by:
findForChainAndPullRequestin interfacePlanBranchPullRequestDao
-
findForChain
@NotNull public @NotNull List<MutablePlanBranchPullRequest> findForChain(long chainId)
- Specified by:
findForChainin interfacePlanBranchPullRequestDao
-
findForChainAndPullRequest
@NotNull public @NotNull Optional<MutablePlanBranchPullRequest> findForChainAndPullRequest(@NotNull @NotNull PlanKey chainKey, long pullRequestId)
- Specified by:
findForChainAndPullRequestin interfacePlanBranchPullRequestDao
-
findForPullRequest
@NotNull public @NotNull List<MutablePlanBranchPullRequest> findForPullRequest(long pullRequestId)
- Specified by:
findForPullRequestin interfacePlanBranchPullRequestDao
-
findAll
@NotNull public @NotNull List<MutablePlanBranchPullRequest> findAll()
- Specified by:
findAllin interfacePlanBranchPullRequestDao
-
create
@NotNull public @NotNull MutablePlanBranchPullRequest create(@NotNull @NotNull ChainBranch chainBranch, @NotNull @NotNull MutableVcsPullRequest vcsPullRequest)
- Specified by:
createin interfacePlanBranchPullRequestDao- Returns:
- newly created link between chain branch and pull request
-
deleteForChainBranch
public boolean deleteForChainBranch(long branchId)
- Specified by:
deleteForChainBranchin interfacePlanBranchPullRequestDao- Returns:
- true if a link was found and deleted
-
deleteForChainBranch
public boolean deleteForChainBranch(@NotNull @NotNull PlanKey planKey)- Specified by:
deleteForChainBranchin interfacePlanBranchPullRequestDao- Returns:
- true if a link was found and deleted
-
deleteForVcsPullRequest
public int deleteForVcsPullRequest(long pullRequestId)
- Specified by:
deleteForVcsPullRequestin interfacePlanBranchPullRequestDao- Returns:
- number of deleted links
-
-