Class RepositoryChangesetHibernateDao
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate5.support.HibernateDaoSupport
-
- com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
-
- com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<RepositoryChangeset>
-
- com.atlassian.bamboo.resultsummary.vcs.RepositoryChangesetHibernateDao
-
- All Implemented Interfaces:
BambooObjectDao<RepositoryChangeset>
,RepositoryChangesetDao
,org.springframework.beans.factory.InitializingBean
public class RepositoryChangesetHibernateDao extends BambooHibernateObjectDao<RepositoryChangeset> implements RepositoryChangesetDao
-
-
Constructor Summary
Constructors Constructor Description RepositoryChangesetHibernateDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable RepositoryChangeset
findById(long id)
List<RepositoryChangeset>
getChangesetsForBuildNumberRange(@NotNull PlanKey planKey, int firstBuildNumber, int lastBuildNumber)
Finds and returns all repository change sets related with build results from specified range.void
removeRepositoryChangesets(RepositoryDataEntity repositoryDataEntity)
void
saveRelevantChangesets(List<RelevantChangeset> relevantChangesets)
long
scrollChangesetsForExport(Consumer<RepositoryChangeset> consumer)
long
scrollRelevantChangesetsForExport(Consumer<RelevantChangeset> consumer)
-
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
-
findById
@Nullable public @Nullable RepositoryChangeset findById(long id)
- Specified by:
findById
in interfaceRepositoryChangesetDao
-
scrollChangesetsForExport
public long scrollChangesetsForExport(Consumer<RepositoryChangeset> consumer)
- Specified by:
scrollChangesetsForExport
in interfaceRepositoryChangesetDao
-
scrollRelevantChangesetsForExport
public long scrollRelevantChangesetsForExport(Consumer<RelevantChangeset> consumer)
- Specified by:
scrollRelevantChangesetsForExport
in interfaceRepositoryChangesetDao
-
saveRelevantChangesets
public void saveRelevantChangesets(List<RelevantChangeset> relevantChangesets)
- Specified by:
saveRelevantChangesets
in interfaceRepositoryChangesetDao
-
removeRepositoryChangesets
public void removeRepositoryChangesets(RepositoryDataEntity repositoryDataEntity)
- Specified by:
removeRepositoryChangesets
in interfaceRepositoryChangesetDao
-
getChangesetsForBuildNumberRange
public List<RepositoryChangeset> getChangesetsForBuildNumberRange(@NotNull @NotNull PlanKey planKey, int firstBuildNumber, int lastBuildNumber)
Description copied from interface:RepositoryChangesetDao
Finds and returns all repository change sets related with build results from specified range. Once off results are skipped.- Specified by:
getChangesetsForBuildNumberRange
in interfaceRepositoryChangesetDao
- Returns:
-
-