com.j2biz.blogunity.dao
Class CommentDAO

java.lang.Object
  extended bycom.j2biz.blogunity.dao.AbstractDAO
      extended bycom.j2biz.blogunity.dao.CommentDAO

public class CommentDAO
extends AbstractDAO

Since:
0.1
Author:
michelson

Field Summary
 
Fields inherited from class com.j2biz.blogunity.dao.AbstractDAO
eventService
 
Constructor Summary
CommentDAO()
           
 
Method Summary
 Serializable createComment(Comment comment)
           
 void deleteComment(Comment comment)
           
 void deleteCommentWithAllSubComments(Comment comment)
           
 Comment getCommentByID(long id)
           
 Comment getCommentByID(Long id)
           
 List getCommentsByUserpic(Userpic pic)
           
 List getPaginatedComments(Long entryId, int firstResult, int maxResults)
           
 List getRecentBlogComments(Blog b)
           
 void updateComment(Comment comment)
           
 
Methods inherited from class com.j2biz.blogunity.dao.AbstractDAO
create, delete, getByID, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentDAO

public CommentDAO()
Method Detail

getCommentByID

public Comment getCommentByID(long id)
                       throws BlogunityException
Throws:
BlogunityException

getCommentByID

public Comment getCommentByID(Long id)
                       throws BlogunityException
Throws:
BlogunityException

createComment

public Serializable createComment(Comment comment)
                           throws BlogunityException
Throws:
BlogunityException

deleteComment

public void deleteComment(Comment comment)
                   throws BlogunityException
Throws:
BlogunityException

deleteCommentWithAllSubComments

public void deleteCommentWithAllSubComments(Comment comment)
                                     throws BlogunityException
Throws:
BlogunityException

updateComment

public void updateComment(Comment comment)
                   throws BlogunityException
Throws:
BlogunityException

getCommentsByUserpic

public List getCommentsByUserpic(Userpic pic)
                          throws BlogunityException
Throws:
BlogunityException

getPaginatedComments

public List getPaginatedComments(Long entryId,
                                 int firstResult,
                                 int maxResults)
                          throws BlogunityException
Throws:
BlogunityException

getRecentBlogComments

public List getRecentBlogComments(Blog b)
                           throws BlogunityException
Throws:
BlogunityException


Copyright (c)j2biz.com