Package org.exoplatform.task.dao.jpa
Class LabelDAOImpl
- java.lang.Object
-
- org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<E,K>
-
- org.exoplatform.task.dao.jpa.CommonJPADAO<Label,Long>
-
- org.exoplatform.task.dao.jpa.LabelDAOImpl
-
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<Label,Long>,LabelHandler
public class LabelDAOImpl extends CommonJPADAO<Label,Long> implements LabelHandler
-
-
Field Summary
-
Fields inherited from class org.exoplatform.task.dao.jpa.CommonJPADAO
clz
-
-
Constructor Summary
Constructors Constructor Description LabelDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(Label entity)voiddeleteAll()voiddeleteAll(List<Label> entities)org.exoplatform.commons.utils.ListAccess<Label>findLabels(LabelQuery query)org.exoplatform.commons.utils.ListAccess<Label>findLabelsByProject(long projectId)org.exoplatform.commons.utils.ListAccess<Label>findLabelsByTask(long taskId, long projectId)org.exoplatform.commons.utils.ListAccess<Label>findLabelsByUser(String username)-
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, findAll, getDialect, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAll
-
-
-
-
Method Detail
-
delete
public void delete(Label entity)
-
deleteAll
public void deleteAll()
-
findLabelsByUser
public org.exoplatform.commons.utils.ListAccess<Label> findLabelsByUser(String username)
- Specified by:
findLabelsByUserin interfaceLabelHandler- Parameters:
username- user name- Returns:
- List of labels
-
findLabelsByProject
public org.exoplatform.commons.utils.ListAccess<Label> findLabelsByProject(long projectId)
- Specified by:
findLabelsByProjectin interfaceLabelHandler
-
findLabelsByTask
public org.exoplatform.commons.utils.ListAccess<Label> findLabelsByTask(long taskId, long projectId)
- Specified by:
findLabelsByTaskin interfaceLabelHandler
-
findLabels
public org.exoplatform.commons.utils.ListAccess<Label> findLabels(LabelQuery query)
- Specified by:
findLabelsin interfaceLabelHandler
-
-