Package org.exoplatform.task.dao.jpa
Class StatusDAOImpl
- java.lang.Object
-
- org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<E,K>
-
- org.exoplatform.task.dao.jpa.CommonJPADAO<Status,Long>
-
- org.exoplatform.task.dao.jpa.StatusDAOImpl
-
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<Status,Long>,StatusHandler
public class StatusDAOImpl extends CommonJPADAO<Status,Long> implements StatusHandler
Created by The eXo Platform SAS Author : Thibault Clement tclement@exoplatform.com 4/10/15
-
-
Field Summary
-
Fields inherited from class org.exoplatform.task.dao.jpa.CommonJPADAO
clz
-
-
Constructor Summary
Constructors Constructor Description StatusDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatusfindByName(String name, long projectID)List<Status>findByNamedQuery(String query, Map<String,Object> params, int limit)StatusfindHighestRankStatusByProject(long projectId)StatusfindLowestRankStatusByProject(Long projectId)List<Status>getStatuses(long projectId)-
Methods inherited from class org.exoplatform.task.dao.jpa.CommonJPADAO
buildPath, buildQuery, buildSingleCondition, cloneEntities, cloneEntity, create, find, findEntities, getCache
-
Methods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, createAll, delete, deleteAll, deleteAll, findAll, getDialect, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAll
-
-
-
-
Method Detail
-
findLowestRankStatusByProject
public Status findLowestRankStatusByProject(Long projectId)
- Specified by:
findLowestRankStatusByProjectin interfaceStatusHandler
-
findHighestRankStatusByProject
public Status findHighestRankStatusByProject(long projectId)
- Specified by:
findHighestRankStatusByProjectin interfaceStatusHandler
-
findByName
public Status findByName(String name, long projectID)
- Specified by:
findByNamein interfaceStatusHandler
-
getStatuses
public List<Status> getStatuses(long projectId)
- Specified by:
getStatusesin interfaceStatusHandler
-
-