Class DomainDAO
- java.lang.Object
-
- org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<DomainEntity,Long>
-
- org.exoplatform.addons.gamification.storage.dao.DomainDAO
-
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<DomainEntity,Long>
public class DomainDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<DomainEntity,Long> implements org.exoplatform.commons.api.persistence.GenericDAO<DomainEntity,Long>
-
-
Constructor Summary
Constructors Constructor Description DomainDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intdeleteDomainByTitle(String domainTitle)DomainEntityfindDomainByTitle(String domainTitle)List<DomainEntity>getAllDomains()List<DomainEntity>getEnabledDomains()-
Methods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getDialect, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAll
-
-
-
-
Method Detail
-
findDomainByTitle
public DomainEntity findDomainByTitle(String domainTitle) throws javax.persistence.PersistenceException
- Throws:
javax.persistence.PersistenceException
-
getAllDomains
public List<DomainEntity> getAllDomains() throws javax.persistence.PersistenceException
- Throws:
javax.persistence.PersistenceException
-
getEnabledDomains
public List<DomainEntity> getEnabledDomains() throws javax.persistence.PersistenceException
- Throws:
javax.persistence.PersistenceException
-
deleteDomainByTitle
public int deleteDomainByTitle(String domainTitle) throws javax.persistence.PersistenceException
- Throws:
javax.persistence.PersistenceException
-
clear
public void clear()
-
-