com.atlassian.bamboo.deployments.versions.persistence.commits
Class DeploymentVersionVcsCommitDaoImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
              extended by com.atlassian.bamboo.deployments.versions.persistence.commits.DeploymentVersionVcsCommitDaoImpl
All Implemented Interfaces:
DeploymentVersionVcsCommitDao, org.springframework.beans.factory.InitializingBean

public class DeploymentVersionVcsCommitDaoImpl
extends StatelessSessionHibernateDaoSupport
implements DeploymentVersionVcsCommitDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
DeploymentVersionVcsCommitDaoImpl()
           
 
Method Summary
 int getCommitsCountForVersion(long deploymentVersionId)
           
 java.util.List<MutableDeploymentVersionVcsCommitImpl> getCommitsForVersion(long deploymentVersionId, int maxCommits)
          Aggregates DeploymentVersionVcsCommit from all DeploymentVersionVcsChangeset associated with a DeploymentVersion
 long scrollCommitsForExport(com.google.common.base.Function<MutableDeploymentVersionVcsCommit,java.lang.Void> function)
          Scroll through and execute function for each of MutableDeploymentVersionVcsCommitImpl Objects passed to function are not fully initialized.
 
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
 
Methods inherited from class org.springframework.orm.hibernate.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
 

Constructor Detail

DeploymentVersionVcsCommitDaoImpl

public DeploymentVersionVcsCommitDaoImpl()
Method Detail

getCommitsForVersion

public java.util.List<MutableDeploymentVersionVcsCommitImpl> getCommitsForVersion(long deploymentVersionId,
                                                                                  int maxCommits)
Description copied from interface: DeploymentVersionVcsCommitDao
Aggregates DeploymentVersionVcsCommit from all DeploymentVersionVcsChangeset associated with a DeploymentVersion

Specified by:
getCommitsForVersion in interface DeploymentVersionVcsCommitDao
maxCommits - maximum number of commits
Returns:
commits associated with a DeploymentVersion

getCommitsCountForVersion

public int getCommitsCountForVersion(long deploymentVersionId)
Specified by:
getCommitsCountForVersion in interface DeploymentVersionVcsCommitDao
Returns:
number of all commit records associated with a DeploymentVersion

scrollCommitsForExport

public long scrollCommitsForExport(@NotNull
                                   com.google.common.base.Function<MutableDeploymentVersionVcsCommit,java.lang.Void> function)
Description copied from interface: DeploymentVersionVcsCommitDao
Scroll through and execute function for each of MutableDeploymentVersionVcsCommitImpl Objects passed to function are not fully initialized. Collections are empty and related objects have only id set.

Specified by:
scrollCommitsForExport in interface DeploymentVersionVcsCommitDao
Parameters:
function - function to be executed on each of the MutableDeploymentVersionVcsCommitImpl
Returns:
number of traversed rows


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.