java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<BadgeEntity,Long>
org.exoplatform.addons.gamification.storage.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
    • findBadgeByTitleAndDomain

      public BadgeEntity findBadgeByTitleAndDomain(String badgeTitle, String domain) throws javax.persistence.PersistenceException
      Throws:
      javax.persistence.PersistenceException
    • findBadgesByDomain

      public List<BadgeEntity> findBadgesByDomain(String domain) throws javax.persistence.PersistenceException
      Throws:
      javax.persistence.PersistenceException
    • findEnabledBadgesByDomain

      public List<BadgeEntity> findEnabledBadgesByDomain(String domain) throws javax.persistence.PersistenceException
      Throws:
      javax.persistence.PersistenceException
    • getAllBadges

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

      public List<BadgeEntity> getAllBadgesWithNullDomain() throws javax.persistence.PersistenceException
      Throws:
      javax.persistence.PersistenceException
    • getDomainList

      public List<String> getDomainList() throws javax.persistence.PersistenceException
      Throws:
      javax.persistence.PersistenceException