Package com.atlassian.bamboo.tag
Class VcsTagDaoImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<VcsTag>
com.atlassian.bamboo.tag.VcsTagDaoImpl
- All Implemented Interfaces:
BambooObjectDao<VcsTag>,VcsTagDao,org.springframework.beans.factory.InitializingBean
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindByRepositoryDataId(long repositoryDataId) returns all saved tags for given repositoryreturns id values of all repositories for which tag detection is initializedvoidsaveAllByRepositoryDataId(List<VcsTag> tags, long repositoryDataId, boolean replaceMode) Saves new tags for a given repository.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
-
VcsTagDaoImpl
public VcsTagDaoImpl()
-
-
Method Details
-
getAllActiveRepositoryIds
Description copied from interface:VcsTagDaoreturns id values of all repositories for which tag detection is initialized- Specified by:
getAllActiveRepositoryIdsin interfaceVcsTagDao
-
findByRepositoryDataId
Description copied from interface:VcsTagDaoreturns all saved tags for given repository- Specified by:
findByRepositoryDataIdin interfaceVcsTagDao
-
saveAllByRepositoryDataId
public void saveAllByRepositoryDataId(List<VcsTag> tags, long repositoryDataId, boolean replaceMode) Description copied from interface:VcsTagDaoSaves new tags for a given repository. If replaceMode is true then it removes all old rows.- Specified by:
saveAllByRepositoryDataIdin interfaceVcsTagDao- Parameters:
tags-repositoryDataId-replaceMode-
-