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, saveAllgetCacheAwareHibernateTemplatecheckDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAllpublic long scrollCommitsForExport(@NotNull
Consumer<Commit> consumer)
CommitDaoscrollCommitsForExport in interface CommitDaoconsumer - consumer to accept on each of the Commit@NotNull public List<Commit> getCommitsForResult(@NotNull ResultsSummary resultsSummary)
getCommitsForResult in interface CommitDaoresultsSummary - ResultsSummary which associated commits have to be returnedResultsSummary@NotNull public List<UnassociatedCommit> getCommitsForUser(@NotNull String username, int max)
CommitDaogetCommitsForUser in interface CommitDaousername - to find commits for (based on author -> username association)max - maximum number of entries to retrieveCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.