com.atlassian.bamboo.commit
Interface CommitDao

All Superinterfaces:
BambooObjectDao<Commit>
All Known Implementing Classes:
CommitHibernateDao

@Internal
public interface CommitDao
extends BambooObjectDao<Commit>


Method Summary
 List<Commit> getCommitsForResult(ResultsSummary resultsSummary)
           
 List<UnassociatedCommit> getCommitsForUser(String username, int max)
          Find recent commits for a given user.
 long scrollCommitsForExport(com.google.common.base.Function<Commit,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.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, executeReturnInt, executeReturnLong, findAll, findById, save, saveAll
 

Method Detail

scrollCommitsForExport

long scrollCommitsForExport(@NotNull
                            com.google.common.base.Function<Commit,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
List<Commit> getCommitsForResult(@NotNull
                                         ResultsSummary resultsSummary)
Parameters:
resultsSummary - ResultsSummary which associated commits have to be returned
Returns:
commits for the given ResultsSummary

getCommitsForUser

@NotNull
List<UnassociatedCommit> getCommitsForUser(@NotNull
                                                   String username,
                                                   int max)
Find recent commits for a given user.

Parameters:
username - to find commits for (based on author -> username association)
max - maximum number of entries to retrieve
Returns:
Representation of the commit.


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.