com.atlassian.bamboo.deployments.versions.persistence.commits
Class DeploymentVersionVcsCommitDaoImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
com.atlassian.bamboo.deployments.versions.persistence.commits.DeploymentVersionVcsCommitDaoImpl
- All Implemented Interfaces:
- DeploymentVersionVcsCommitDao, org.springframework.beans.factory.InitializingBean
public class DeploymentVersionVcsCommitDaoImpl
- extends StatelessSessionHibernateDaoSupport
- implements DeploymentVersionVcsCommitDao
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
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 |
DeploymentVersionVcsCommitDaoImpl
public DeploymentVersionVcsCommitDaoImpl()
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.