Class LabelDAOImpl

java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<Label,Long>
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
  • Constructor Details

    • LabelDAOImpl

      public LabelDAOImpl()
  • Method Details

    • delete

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

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

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

      public org.exoplatform.commons.utils.ListAccess<Label> findLabelsByUser(String username)
      Specified by:
      findLabelsByUser in interface LabelHandler
      Parameters:
      username - user name
      Returns:
      List of labels
    • findLabelsByProject

      public org.exoplatform.commons.utils.ListAccess<Label> findLabelsByProject(long projectId)
      Specified by:
      findLabelsByProject in interface LabelHandler
    • findLabelsByTask

      public org.exoplatform.commons.utils.ListAccess<Label> findLabelsByTask(long taskId, long projectId)
      Specified by:
      findLabelsByTask in interface LabelHandler
    • findLabels

      public org.exoplatform.commons.utils.ListAccess<Label> findLabels(LabelQuery query)
      Specified by:
      findLabels in interface LabelHandler