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.StatelessSessionHibernateDaoSupport
-
- com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<VcsTag>
-
- com.atlassian.bamboo.tag.VcsTagDaoImpl
-
- All Implemented Interfaces:
BambooObjectDao<VcsTag>
,VcsTagDao
,org.springframework.beans.factory.InitializingBean
public class VcsTagDaoImpl extends BambooHibernateObjectDao<VcsTag> implements VcsTagDao
-
-
Constructor Summary
Constructors Constructor Description VcsTagDaoImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<VcsTag>
findByRepositoryDataId(long repositoryDataId)
returns all saved tags for given repositoryList<Long>
getAllActiveRepositoryIds()
returns id values of all repositories for which tag detection is initializedvoid
saveAllByRepositoryDataId(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, findById, merge, save, saveAll
-
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
-
Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
-
-
-
Method Detail
-
getAllActiveRepositoryIds
public List<Long> getAllActiveRepositoryIds()
Description copied from interface:VcsTagDao
returns id values of all repositories for which tag detection is initialized- Specified by:
getAllActiveRepositoryIds
in interfaceVcsTagDao
-
findByRepositoryDataId
public List<VcsTag> findByRepositoryDataId(long repositoryDataId)
Description copied from interface:VcsTagDao
returns all saved tags for given repository- Specified by:
findByRepositoryDataId
in interfaceVcsTagDao
-
saveAllByRepositoryDataId
public void saveAllByRepositoryDataId(List<VcsTag> tags, long repositoryDataId, boolean replaceMode)
Description copied from interface:VcsTagDao
Saves new tags for a given repository. If replaceMode is true then it removes all old rows.- Specified by:
saveAllByRepositoryDataId
in interfaceVcsTagDao
-
-