public interface CommentDao extends BaseDao<Comment>
Comment
entities and CommentThread
entities. The latter ones
are managed by their reference and thus do not need to be created or deleted
invididually.Modifier and Type | Method and Description |
---|---|
Commentable |
fetchCommentable(CommentThread thread)
Fetches the entry that uses the given
CommentThread . |
List<Comment> |
fetchReplies(Comment comment)
Fetches all direct replies on the given
Comment , even unpublished ones. |
List<Comment> fetchReplies(Comment comment)
Comment
, even unpublished ones.
Comments are sorted chronologically.Commentable fetchCommentable(CommentThread thread)
CommentThread
.thread
- CommentThread
to fetch the reference entry forCommentable
entryCopyright © 2009–2016. All rights reserved.