com.atlassian.bamboo.commit
Interface CommitDao

All Superinterfaces:
BambooObjectDao, bucket.core.persistence.ObjectDao
All Known Implementing Classes:
CommitHibernateDao

public interface CommitDao
extends BambooObjectDao


Method Summary
 java.util.List<Commit> getCommitsForResult(ResultsSummary resultsSummary)
           
 long scrollCommitsForExport(com.google.common.base.Function<Commit,java.lang.Void> function)
          Scroll through and execute function for each of Commit Objects passed to function are not fully initialized.
 
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findById
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw
 

Method Detail

scrollCommitsForExport

long scrollCommitsForExport(@NotNull
                            com.google.common.base.Function<Commit,java.lang.Void> function)
Scroll through and execute function for each of Commit 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 Commit
Returns:
number of traversed rows

getCommitsForResult

@NotNull
java.util.List<Commit> getCommitsForResult(@NotNull
                                                   ResultsSummary resultsSummary)
Parameters:
resultsSummary -
Returns:
commits for the given BuildResultsSummary


Copyright © 2011 Atlassian. All Rights Reserved.