Interface CommentDao

    • Method Detail

      • findById

        @Nullable
        @Nullable Comment findById​(long id)
      • getCommentsForEntity

        @NotNull
        @NotNull List<Comment> getCommentsForEntity​(long entityId)
      • findCommentByUser

        @NotNull
        @NotNull List<Comment> findCommentByUser​(String userName)
      • getCommentsForBuildResults

        @NotNull
        @NotNull List<Comment> getCommentsForBuildResults​(@NotNull
                                                          @NotNull PlanKey planKey)
      • 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.