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, 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 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 CommentDao
public long scrollCommentsForExport(@NotNull Consumer<Comment> consumer)
CommentDao
scrollCommentsForExport
in interface CommentDao
consumer
- consumer that will accept each of the Commentspublic int deleteByEntityId(@NotNull DeletionSQLAdapter deletionAdapter)
CommentDao
deleteByEntityId
in interface CommentDao
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.