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
-
-
Constructor Summary
Constructors Constructor Description DeploymentVersionVcsCommitDaoImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCommitsCountForVersion(long deploymentVersionId)
List<MutableDeploymentVersionVcsCommitImpl>
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
-
-
-
-
Method Detail
-
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
-
-