Class BadgeDAO

java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<BadgeEntity,Long>
io.meeds.gamification.dao.BadgeDAO
All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<BadgeEntity,Long>

public class BadgeDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<BadgeEntity,Long>
  • Constructor Details

    • BadgeDAO

      public BadgeDAO()
  • Method Details

    • findBadgeByTitle

      public BadgeEntity findBadgeByTitle(String badgeTitle) throws javax.persistence.PersistenceException
      Throws:
      javax.persistence.PersistenceException
    • findBadgeByTitleAndProgramId

      public BadgeEntity findBadgeByTitleAndProgramId(String badgeTitle, long programId) throws javax.persistence.PersistenceException
      Throws:
      javax.persistence.PersistenceException
    • findBadgesByProgramId

      public List<BadgeEntity> findBadgesByProgramId(long domainId) throws javax.persistence.PersistenceException
      Throws:
      javax.persistence.PersistenceException
    • findEnabledBadgesByProgramId

      public List<BadgeEntity> findEnabledBadgesByProgramId(long domainId) throws javax.persistence.PersistenceException
      Throws:
      javax.persistence.PersistenceException
    • getAllBadges

      public List<BadgeEntity> getAllBadges() throws javax.persistence.PersistenceException
      Throws:
      javax.persistence.PersistenceException