Package com.atlassian.bamboo.commit
Interface CommitDao
-
- All Superinterfaces:
BambooObjectDao<Commit>
- All Known Implementing Classes:
CommitHibernateDao
@Internal public interface CommitDao extends BambooObjectDao<Commit>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull List<Commit>
getCommitsForResult(@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 Detail
-
scrollCommitsForExport
long scrollCommitsForExport(@NotNull @NotNull Consumer<Commit> consumer)
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
@NotNull @NotNull List<Commit> getCommitsForResult(@NotNull @NotNull ResultsSummary resultsSummary)
- 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.
-
-