public class CommentDAOImpl extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<Comment,Long> implements CommentHandler
| Constructor and Description |
|---|
CommentDAOImpl(org.exoplatform.commons.persistence.impl.EntityManagerService entityService) |
| Modifier and Type | Method and Description |
|---|---|
long |
count(Task task)
Count number comments of Task
|
List<Comment> |
findCommentsOfTask(Task task,
int start,
int limit)
Load list comments of a task.
|
javax.persistence.EntityManager |
getEntityManager() |
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAllpublic CommentDAOImpl(org.exoplatform.commons.persistence.impl.EntityManagerService entityService)
public javax.persistence.EntityManager getEntityManager()
public long count(Task task)
CommentHandlercount in interface CommentHandlerpublic List<Comment> findCommentsOfTask(Task task, int start, int limit)
CommentHandlerfindCommentsOfTask in interface CommentHandlertask - - Task objectstart - - The first row to select.limit - - The limit row to select. If limit <= 0, the start param will be ignore and all comment will be
loaded.Copyright © 2003–2015 eXo Platform SAS. All rights reserved.