com.atlassian.bamboo.comment
Interface CommentDao

All Superinterfaces:
BambooObjectDao<Comment>
All Known Implementing Classes:
CommentHibernateDao

public interface CommentDao
extends BambooObjectDao<Comment>


Method Summary
 int deleteByEntityId(DeletionSQLAdapter deletionAdapter)
          Delete Comments related to an entity.
 Comment findById(long id)
           
 java.util.List<Comment> findCommentByUser(java.lang.String userName)
           
 java.util.List<Comment> getCommentsByUserForPlans(java.lang.String userName, java.util.List<? extends Plan> plans)
           
 java.util.List<Comment> getCommentsForEntity(long entityId)
           
 java.util.List<Comment> getPlanResultComments(ResultsSummary resultsSummary)
          Deprecated. since 4.4 use ImmutableResultsSummary.getComments() instead. Jobs no longer have comments
 boolean hasPlanResultComments(ResultsSummary resultsSummary)
          Deprecated. since 4.4 use ImmutableResultsSummary.getComments() instead. Jobs no longer have comments
 long scrollCommentsForExport(com.google.common.base.Function<Comment,java.lang.Void> function)
          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
delete, deleteAll, executeReturnLong, findAll, findById, save, saveAll
 

Method Detail

findById

@Nullable
Comment findById(long id)

getCommentsForEntity

@NotNull
java.util.List<Comment> getCommentsForEntity(long entityId)

findCommentByUser

@NotNull
java.util.List<Comment> findCommentByUser(java.lang.String userName)

getCommentsByUserForPlans

@NotNull
java.util.List<Comment> getCommentsByUserForPlans(@NotNull
                                                          java.lang.String userName,
                                                          @NotNull
                                                          java.util.List<? extends Plan> plans)

hasPlanResultComments

@Deprecated
boolean hasPlanResultComments(@NotNull
                                         ResultsSummary resultsSummary)
Deprecated. since 4.4 use ImmutableResultsSummary.getComments() instead. Jobs no longer have comments


getPlanResultComments

@Deprecated
@NotNull
java.util.List<Comment> getPlanResultComments(@NotNull
                                                                 ResultsSummary resultsSummary)
Deprecated. since 4.4 use ImmutableResultsSummary.getComments() instead. Jobs no longer have comments


scrollCommentsForExport

long scrollCommentsForExport(@NotNull
                             com.google.common.base.Function<Comment,java.lang.Void> function)
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:
function - function to be executed on each of the Comment
Returns:
number of traversed rows

deleteByEntityId

int deleteByEntityId(@NotNull
                     DeletionSQLAdapter deletionAdapter)
Delete Comments related to an entity.

Parameters:
deletionAdapter -


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.