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