Package com.atlassian.bamboo.plan.branch
Interface VcsBranchDao
-
- All Superinterfaces:
BambooObjectDao<BambooVcsBranch>
- All Known Implementing Classes:
VcsBranchHibernateDao
public interface VcsBranchDao extends BambooObjectDao<BambooVcsBranch>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deleteAll(ImmutableChain chain)
List<BambooVcsBranch>
findByChain(@NotNull ImmutableChain chain)
@Nullable BambooVcsBranch
findByChainAndName(long chainId, @NotNull String branchName)
List<BambooVcsBranch>
findByChainId(long chainId)
Note: the returned VCS branches will not have a chain associated with them.List<BambooVcsBranch>
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>
findWithDetectedDeletionDate()
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 Detail
-
findByChain
List<BambooVcsBranch> findByChain(@NotNull @NotNull ImmutableChain chain)
-
deleteAll
void deleteAll(ImmutableChain chain)
-
findByChainId
List<BambooVcsBranch> findByChainId(long chainId)
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
@NotNull @NotNull List<BambooVcsBranch> 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
List<BambooVcsBranch> findNotDeletedByChain(@NotNull @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.- 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
-
-