public class CommentHibernateDao extends BambooHibernateObjectDao<Comment> implements CommentDao
| Constructor and Description |
|---|
CommentHibernateDao(TransactionAndHibernateTemplate transactionTemplate) |
| Modifier and Type | Method and Description |
|---|---|
int |
deleteByEntityId(DeletionSQLAdapter deletionAdapter)
Delete Comments related to an entity.
|
Comment |
findById(long id) |
List<Comment> |
findCommentByUser(String userName) |
List<Comment> |
getCommentsForBuildResults(PlanKey planKey) |
List<Comment> |
getCommentsForEntity(long entityId) |
List<Comment> |
getCommentsForJobResults(ChainResultsSummary chainResultsSummary) |
long |
scrollCommentsForExport(Consumer<Comment> consumer)
Scroll through and execute function for each of Comment
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 CommentHibernateDao(TransactionAndHibernateTemplate transactionTemplate)
public Comment findById(long id)
findById in interface CommentDao@NotNull public List<Comment> getCommentsForEntity(long entityId)
getCommentsForEntity in interface CommentDao@NotNull public List<Comment> findCommentByUser(String userName)
findCommentByUser in interface CommentDao@NotNull public List<Comment> getCommentsForBuildResults(@NotNull PlanKey planKey)
getCommentsForBuildResults in interface CommentDao@NotNull public List<Comment> getCommentsForJobResults(@NotNull ChainResultsSummary chainResultsSummary)
getCommentsForJobResults in interface CommentDaopublic long scrollCommentsForExport(@NotNull
Consumer<Comment> consumer)
CommentDaoscrollCommentsForExport in interface CommentDaoconsumer - consumer that will accept each of the Commentspublic int deleteByEntityId(@NotNull
DeletionSQLAdapter deletionAdapter)
CommentDaodeleteByEntityId in interface CommentDaoCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.