Package com.atlassian.bamboo.plan.branch
Interface VcsBranchDao
- All Superinterfaces:
BambooObjectDao<BambooVcsBranch>
- All Known Implementing Classes:
VcsBranchHibernateDao
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAll
(ImmutableChain chain) findByChain
(@NotNull ImmutableChain chain) @Nullable BambooVcsBranch
findByChainAndName
(long chainId, @NotNull String branchName) findByChainId
(long chainId) Note: the returned VCS branches will not have a chain associated with them.findNotDeletedByChain
(@NotNull ImmutableChain chain) Given a chain, this will return a list ofBambooVcsBranch
of which Bamboo hasn't detected yet that they were deleted in the repository.@NotNull List<BambooVcsBranch>
Retrieve a list ofBambooVcsBranch
for which a deletion has been detected.Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
Method Details
-
findByChain
-
deleteAll
-
findByChainId
Note: the returned VCS branches will not have a chain associated with them. -
findByChainAndName
@Nullable @Nullable BambooVcsBranch findByChainAndName(long chainId, @NotNull @NotNull String branchName) -
findWithDetectedDeletionDate
Retrieve a list ofBambooVcsBranch
for which a deletion has been detected.- Returns:
- a list of
BambooVcsBranch
for which a deletion has been detected
-
findNotDeletedByChain
Given a chain, this will return a list ofBambooVcsBranch
of which Bamboo hasn't detected yet that they were deleted in the repository.- Parameters:
chain
- the chain for which we want to find VCS branches.- Returns:
- a list of
BambooVcsBranch
which still exists in the repository according to Bamboo
-