public class CommentHibernateDao extends BambooHibernateObjectDao<Comment> implements CommentDao
| Constructor and Description |
|---|
CommentHibernateDao(TransactionAndHibernateTemplate transactionTemplate) |
| Modifier and Type | Method and Description |
|---|---|
int |
deleteByEntityId(com.atlassian.bamboo.persistence3.DeletionSQLAdapter deletionAdapter) |
Comment |
findById(long id) |
List<Comment> |
findCommentByUser(String userName) |
List<Comment> |
getCommentsForBuildResults(PlanKey planKey) |
List<Comment> |
getCommentsForEntity(long entityId) |
long |
scrollCommentsForExport(com.google.common.base.Function<Comment,Void> function) |
countAll, countWithRestriction, delete, deleteAll, execute, executeCountQuery, executeReturnInt, executeReturnLong, findAll, findById, save, saveAllgetCacheAwareHibernateTemplatecheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountAll, countWithRestriction, delete, deleteAll, executeReturnInt, executeReturnLong, findAll, findById, 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 CommentDaopublic long scrollCommentsForExport(@NotNull
com.google.common.base.Function<Comment,Void> function)
scrollCommentsForExport in interface CommentDaopublic int deleteByEntityId(@NotNull
com.atlassian.bamboo.persistence3.DeletionSQLAdapter deletionAdapter)
deleteByEntityId in interface CommentDaoCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.