com.atlassian.bamboo.deployments.versions.persistence.commits
Interface DeploymentVersionVcsCommitDao

All Known Implementing Classes:
DeploymentVersionVcsCommitDaoImpl

public interface DeploymentVersionVcsCommitDao

Dao for DeploymentVersionVcsCommit


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.
 

Method Detail

getCommitsForVersion

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

Parameters:
deploymentVersionId -
maxCommits - maximum number of commits
Returns:
commits associated with a DeploymentVersion

getCommitsCountForVersion

int getCommitsCountForVersion(long deploymentVersionId)
Parameters:
deploymentVersionId -
Returns:
number of all commit records associated with a DeploymentVersion

scrollCommitsForExport

long scrollCommitsForExport(@NotNull
                            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. Collections are empty and related objects have only id set.

Parameters:
function - function to be executed on each of the MutableDeploymentVersionVcsCommitImpl
Returns:
number of traversed rows


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