public class VcsBranchHibernateDao extends BambooHibernateObjectDao<BambooVcsBranch> implements VcsBranchDao
Constructor and Description |
---|
VcsBranchHibernateDao() |
Modifier and Type | Method and Description |
---|---|
void |
deleteAll(ImmutableChain chain) |
List<BambooVcsBranch> |
findByChain(ImmutableChain chain) |
BambooVcsBranch |
findByChainAndName(long chainId,
String branchName) |
List<BambooVcsBranch> |
findByChainId(long chainId)
Note: the returned VCS branches will not have a chain associated with them.
|
List<BambooVcsBranch> |
findNotDeletedByChain(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. |
List<BambooVcsBranch> |
findWithDetectedDeletionDate()
Retrieve a list of
BambooVcsBranch for which a deletion has been detected. |
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, findAll, findById, save, saveAll
public List<BambooVcsBranch> findByChain(@NotNull ImmutableChain chain)
findByChain
in interface VcsBranchDao
public List<BambooVcsBranch> findByChainId(long chainId)
VcsBranchDao
findByChainId
in interface VcsBranchDao
@Nullable public BambooVcsBranch findByChainAndName(long chainId, @NotNull String branchName)
findByChainAndName
in interface VcsBranchDao
@NotNull public List<BambooVcsBranch> findWithDetectedDeletionDate()
VcsBranchDao
BambooVcsBranch
for which a deletion has been detected.findWithDetectedDeletionDate
in interface VcsBranchDao
BambooVcsBranch
for which a deletion has been detectedpublic List<BambooVcsBranch> findNotDeletedByChain(@NotNull ImmutableChain chain)
VcsBranchDao
BambooVcsBranch
of which Bamboo hasn't detected yet
that they were deleted in the repository.findNotDeletedByChain
in interface VcsBranchDao
chain
- the chain for which we want to find VCS branches.BambooVcsBranch
which still exists in the repository according to Bamboopublic void deleteAll(ImmutableChain chain)
deleteAll
in interface VcsBranchDao
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.