Package com.atlassian.bamboo.comment
Interface CommentDao
-
- All Superinterfaces:
BambooObjectDao<Comment>
- All Known Implementing Classes:
CommentHibernateDao
public interface CommentDao extends BambooObjectDao<Comment>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deleteByEntityId(long entityId)
Delete Comments related to an entity.int
deleteByEntityId(@NotNull DeletionSQLAdapter deletionAdapter)
Delete Comments related to an entity.@Nullable 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.-
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
-
-
-
Method Detail
-
findById
@Nullable @Nullable Comment findById(long id)
-
getCommentsForBuildResults
@NotNull @NotNull List<Comment> getCommentsForBuildResults(@NotNull @NotNull PlanKey planKey)
-
getCommentsForJobResults
@NotNull @NotNull List<Comment> getCommentsForJobResults(@NotNull @NotNull ChainResultsSummary chainResultsSummary)
-
scrollCommentsForExport
long scrollCommentsForExport(@NotNull @NotNull Consumer<Comment> consumer)
Scroll through and execute function for each of Comment Objects passed to function are not fully initialized. Collections are empty and related objects have only id set.- Parameters:
consumer
- consumer that will accept each of the Comments- Returns:
- number of traversed rows
-
deleteByEntityId
int deleteByEntityId(@NotNull @NotNull DeletionSQLAdapter deletionAdapter)
Delete Comments related to an entity.- Parameters:
deletionAdapter
-
-
deleteByEntityId
void deleteByEntityId(long entityId)
Delete Comments related to an entity.
-
-