Class BadgeDAO
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>
-
Field Summary
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindBadgeByTitle(String badgeTitle) findBadgeByTitleAndDomain(String badgeTitle, long domainId) findBadgesByDomain(long domainId) findEnabledBadgesByDomain(long domainId) Methods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAll
-
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, long domainId) throws javax.persistence.PersistenceException - Throws:
javax.persistence.PersistenceException
-
findBadgesByDomain
public List<BadgeEntity> findBadgesByDomain(long domainId) throws javax.persistence.PersistenceException - Throws:
javax.persistence.PersistenceException
-
findEnabledBadgesByDomain
public List<BadgeEntity> findEnabledBadgesByDomain(long domainId) throws javax.persistence.PersistenceException - Throws:
javax.persistence.PersistenceException
-
getAllBadges
- Throws:
javax.persistence.PersistenceException
-
getAllBadgesWithNullDomain
- Throws:
javax.persistence.PersistenceException
-