public class CommitHibernateDao extends BambooHibernateObjectDao<Commit> implements CommitDao
Constructor and Description |
---|
CommitHibernateDao() |
Modifier and Type | Method and Description |
---|---|
List<Commit> |
getCommitsForResult(ResultsSummary resultsSummary) |
List<UnassociatedCommit> |
getCommitsForUser(String username,
int max)
Find recent commits for a given user.
|
long |
scrollCommitsForExport(Consumer<Commit> consumer)
Scroll through and execute function for each of Commit
Objects passed to function are not fully initialized.
|
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
public long scrollCommitsForExport(@NotNull Consumer<Commit> consumer)
CommitDao
scrollCommitsForExport
in interface CommitDao
consumer
- consumer to accept on each of the Commit@NotNull public List<Commit> getCommitsForResult(@NotNull ResultsSummary resultsSummary)
getCommitsForResult
in interface CommitDao
resultsSummary
- ResultsSummary
which associated commits have to be returnedResultsSummary
@NotNull public List<UnassociatedCommit> getCommitsForUser(@NotNull String username, int max)
CommitDao
getCommitsForUser
in interface CommitDao
username
- to find commits for (based on author -> username association)max
- maximum number of entries to retrieveCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.