Class DeploymentVersionVcsCommitDaoImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.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
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCommitsCountForVersion
(long deploymentVersionId) getCommitsForVersion
(long deploymentVersionId, int maxCommits) AggregatesDeploymentVersionVcsCommit
from allDeploymentVersionVcsChangeset
associated with aDeploymentVersion
long
scrollCommitsForExport
(@NotNull Consumer<MutableDeploymentVersionVcsCommit> consumer) 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.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
-
Constructor Details
-
DeploymentVersionVcsCommitDaoImpl
public DeploymentVersionVcsCommitDaoImpl()
-
-
Method Details
-
getCommitsForVersion
public List<MutableDeploymentVersionVcsCommitImpl> getCommitsForVersion(long deploymentVersionId, int maxCommits) Description copied from interface:DeploymentVersionVcsCommitDao
AggregatesDeploymentVersionVcsCommit
from allDeploymentVersionVcsChangeset
associated with aDeploymentVersion
- Specified by:
getCommitsForVersion
in interfaceDeploymentVersionVcsCommitDao
maxCommits
- maximum number of commits- Returns:
- commits associated with a
DeploymentVersion
-
getCommitsCountForVersion
public int getCommitsCountForVersion(long deploymentVersionId) - Specified by:
getCommitsCountForVersion
in interfaceDeploymentVersionVcsCommitDao
- Returns:
- number of all commit records associated with a
DeploymentVersion
-
scrollCommitsForExport
public long scrollCommitsForExport(@NotNull @NotNull Consumer<MutableDeploymentVersionVcsCommit> consumer) 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 interfaceDeploymentVersionVcsCommitDao
- Parameters:
consumer
- consumer to accept each of the MutableDeploymentVersionVcsCommitImpl- Returns:
- number of traversed rows
-