Class CommentDAOImpl

java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<Comment,Long>
org.exoplatform.task.dao.jpa.CommonJPADAO<Comment,Long>
org.exoplatform.task.dao.jpa.CommentDAOImpl
All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<Comment,Long>, CommentHandler

public class CommentDAOImpl extends CommonJPADAO<Comment,Long> implements CommentHandler
Author:
Tuyen Nguyen The.
  • Constructor Details

    • CommentDAOImpl

      public CommentDAOImpl()
  • Method Details

    • delete

      public void delete(Comment entity)
      Specified by:
      delete in interface org.exoplatform.commons.api.persistence.GenericDAO<Comment,Long>
      Overrides:
      delete in class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<Comment,Long>
    • deleteAll

      public void deleteAll(List<Comment> comments)
      Specified by:
      deleteAll in interface org.exoplatform.commons.api.persistence.GenericDAO<Comment,Long>
      Overrides:
      deleteAll in class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<Comment,Long>
    • deleteAll

      public void deleteAll()
      Specified by:
      deleteAll in interface org.exoplatform.commons.api.persistence.GenericDAO<Comment,Long>
      Overrides:
      deleteAll in class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<Comment,Long>
    • findComments

      public org.exoplatform.commons.utils.ListAccess<Comment> findComments(long taskId)
      Specified by:
      findComments in interface CommentHandler
    • getSubComments

      public List<Comment> getSubComments(List<Comment> comments)
      Specified by:
      getSubComments in interface CommentHandler
    • findMentionedUsersOfTask

      public Set<String> findMentionedUsersOfTask(long taskId)
      Specified by:
      findMentionedUsersOfTask in interface CommentHandler