public class DeploymentVersionVcsCommitDaoImpl extends StatelessSessionHibernateDaoSupport implements DeploymentVersionVcsCommitDao
Constructor and Description |
---|
DeploymentVersionVcsCommitDaoImpl() |
Modifier and Type | Method and Description |
---|---|
int |
getCommitsCountForVersion(long deploymentVersionId) |
List<MutableDeploymentVersionVcsCommitImpl> |
getCommitsForVersion(long deploymentVersionId,
int maxCommits)
Aggregates
DeploymentVersionVcsCommit from all DeploymentVersionVcsChangeset associated with a DeploymentVersion |
long |
scrollCommitsForExport(Consumer<MutableDeploymentVersionVcsCommit> consumer)
Scroll through and execute function for each of MutableDeploymentVersionVcsCommitImpl
Objects passed to function are not fully initialized.
|
getCacheAwareHibernateTemplate
public List<MutableDeploymentVersionVcsCommitImpl> getCommitsForVersion(long deploymentVersionId, int maxCommits)
DeploymentVersionVcsCommitDao
DeploymentVersionVcsCommit
from all DeploymentVersionVcsChangeset
associated with a DeploymentVersion
getCommitsForVersion
in interface DeploymentVersionVcsCommitDao
maxCommits
- maximum number of commitsDeploymentVersion
public int getCommitsCountForVersion(long deploymentVersionId)
getCommitsCountForVersion
in interface DeploymentVersionVcsCommitDao
DeploymentVersion
public long scrollCommitsForExport(@NotNull Consumer<MutableDeploymentVersionVcsCommit> consumer)
DeploymentVersionVcsCommitDao
scrollCommitsForExport
in interface DeploymentVersionVcsCommitDao
consumer
- consumer to accept each of the MutableDeploymentVersionVcsCommitImplCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.