Interface VcsBranchDao

All Superinterfaces:
BambooObjectDao<BambooVcsBranch>
All Known Implementing Classes:
VcsBranchHibernateDao

public interface VcsBranchDao extends BambooObjectDao<BambooVcsBranch>
  • Method Details

    • 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 of BambooVcsBranch 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 of BambooVcsBranch 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