com.atlassian.bamboo.resultsummary.vcs
Class RepositoryChangesetHibernateDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
              extended by com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<RepositoryChangeset>
                  extended by 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


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
RepositoryChangesetHibernateDao()
           
 
Method Summary
 RepositoryChangeset findById(long id)
           
 RepositoryChangeset findChangesetByResultId(long resultsSummaryId)
           
 List<RepositoryChangeset> getChangesetsForBuildNumberRange(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(com.google.common.base.Function<RepositoryChangeset,Void> function)
           
 long scrollRelevantChangesetsForExport(com.google.common.base.Function<RelevantChangeset,Void> function)
           
 
Methods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
countAll, countWithRestriction, delete, deleteAll, execute, executeCountQuery, executeReturnInt, executeReturnLong, findAll, findById, save, saveAll
 
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
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, executeReturnInt, executeReturnLong, findAll, findById, save, saveAll
 

Constructor Detail

RepositoryChangesetHibernateDao

public RepositoryChangesetHibernateDao()
Method Detail

findById

@Nullable
public RepositoryChangeset findById(long id)
Specified by:
findById in interface RepositoryChangesetDao

scrollChangesetsForExport

public long scrollChangesetsForExport(com.google.common.base.Function<RepositoryChangeset,Void> function)
Specified by:
scrollChangesetsForExport in interface RepositoryChangesetDao

scrollRelevantChangesetsForExport

public long scrollRelevantChangesetsForExport(com.google.common.base.Function<RelevantChangeset,Void> function)
Specified by:
scrollRelevantChangesetsForExport in interface RepositoryChangesetDao

saveRelevantChangesets

public void saveRelevantChangesets(List<RelevantChangeset> relevantChangesets)
Specified by:
saveRelevantChangesets in interface RepositoryChangesetDao

findChangesetByResultId

public RepositoryChangeset findChangesetByResultId(long resultsSummaryId)
Specified by:
findChangesetByResultId in interface RepositoryChangesetDao
Returns:

removeRepositoryChangesets

public void removeRepositoryChangesets(RepositoryDataEntity repositoryDataEntity)
Specified by:
removeRepositoryChangesets in interface RepositoryChangesetDao

getChangesetsForBuildNumberRange

public List<RepositoryChangeset> getChangesetsForBuildNumberRange(@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 interface RepositoryChangesetDao
Returns:


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.