Package com.atlassian.bamboo.commit
Interface CommitDao
- All Superinterfaces:
BambooObjectDao<Commit>
- All Known Implementing Classes:
CommitHibernateDao
-
Method Summary
Modifier and TypeMethodDescriptiongetCommitsForResult
(@NotNull ResultsSummary resultsSummary) @NotNull List<UnassociatedCommit>
getCommitsForUser
(@NotNull String username, int max) Find recent commits for a given user.long
scrollCommitsForExport
(@NotNull Consumer<Commit> consumer) 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, findAll, findById, merge, save, saveAll
-
Method Details
-
scrollCommitsForExport
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:
consumer
- consumer to accept on each of the Commit- Returns:
- number of traversed rows
-
getCommitsForResult
- Parameters:
resultsSummary
-ResultsSummary
which associated commits have to be returned- Returns:
- commits for the given
ResultsSummary
-
getCommitsForUser
@NotNull @NotNull List<UnassociatedCommit> getCommitsForUser(@NotNull @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.
-