Package com.atlassian.bamboo.plan.branch
Class VcsBranchHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<BambooVcsBranch>
com.atlassian.bamboo.plan.branch.VcsBranchHibernateDao
- All Implemented Interfaces:
BambooObjectDao<BambooVcsBranch>,VcsBranchDao,org.springframework.beans.factory.InitializingBean
public class VcsBranchHibernateDao
extends BambooHibernateObjectDao<BambooVcsBranch>
implements VcsBranchDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAll(ImmutableChain chain) findByChain(@NotNull ImmutableChain chain) @Nullable BambooVcsBranchfindByChainAndName(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 ofBambooVcsBranchof which Bamboo hasn't detected yet that they were deleted in the repository.@NotNull List<BambooVcsBranch> Retrieve a list ofBambooVcsBranchfor which a deletion has been detected.Methods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
convertSearchTermToLikeExpression, countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findAll, findById, merge, save, saveAllMethods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactoryMethods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
-
Constructor Details
-
VcsBranchHibernateDao
public VcsBranchHibernateDao()
-
-
Method Details
-
findByChain
- Specified by:
findByChainin interfaceVcsBranchDao
-
findByChainId
Description copied from interface:VcsBranchDaoNote: the returned VCS branches will not have a chain associated with them.- Specified by:
findByChainIdin interfaceVcsBranchDao
-
findByChainAndName
@Nullable public @Nullable BambooVcsBranch findByChainAndName(long chainId, @NotNull @NotNull String branchName) - Specified by:
findByChainAndNamein interfaceVcsBranchDao
-
findWithDetectedDeletionDate
Description copied from interface:VcsBranchDaoRetrieve a list ofBambooVcsBranchfor which a deletion has been detected.- Specified by:
findWithDetectedDeletionDatein interfaceVcsBranchDao- Returns:
- a list of
BambooVcsBranchfor which a deletion has been detected
-
findNotDeletedByChain
Description copied from interface:VcsBranchDaoGiven a chain, this will return a list ofBambooVcsBranchof which Bamboo hasn't detected yet that they were deleted in the repository.- Specified by:
findNotDeletedByChainin interfaceVcsBranchDao- Parameters:
chain- the chain for which we want to find VCS branches.- Returns:
- a list of
BambooVcsBranchwhich still exists in the repository according to Bamboo
-
deleteAll
- Specified by:
deleteAllin interfaceVcsBranchDao
-