Class RuleDAO
java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<RuleEntity,Long>
org.exoplatform.addons.gamification.storage.dao.RuleDAO
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<RuleEntity,Long>
public class RuleDAO
extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<RuleEntity,Long>
implements org.exoplatform.commons.api.persistence.GenericDAO<RuleEntity,Long>
-
Field Summary
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcountRulesByFilter(RuleFilter filter) findEnabledRulesByEvent(String event) findEnableRuleByTitle(String ruleTitle) findHighestBudgetDomainIds(int offset, int limit) findHighestBudgetDomainIdsBySpacesIds(List<Long> spacesIds, int offset, int limit) findRuleByEventAndDomain(String event, long domainId) findRuleByTitle(String ruleTitle) findRulesIdsByFilter(RuleFilter filter, int offset, int limit) getAllRulesByDomain(String domain) getRuleEventsByType(EntityType ruleType) getRuleIdsByType(EntityType ruleType) longgetRulesTotalScoreByDomain(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, updateAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
-
Constructor Details
-
RuleDAO
public RuleDAO()
-
-
Method Details
-
findEnableRuleByTitle
public RuleEntity findEnableRuleByTitle(String ruleTitle) throws javax.persistence.PersistenceException - Throws:
javax.persistence.PersistenceException
-
findHighestBudgetDomainIds
-
findHighestBudgetDomainIdsBySpacesIds
-
findEnabledRulesByEvent
public List<RuleEntity> findEnabledRulesByEvent(String event) throws javax.persistence.PersistenceException - Throws:
javax.persistence.PersistenceException
-
findRuleByTitle
- Throws:
javax.persistence.PersistenceException
-
findRuleByEventAndDomain
public RuleEntity findRuleByEventAndDomain(String event, long domainId) throws javax.persistence.PersistenceException - Throws:
javax.persistence.PersistenceException
-
getAllRules
- Throws:
javax.persistence.PersistenceException
-
getActiveRules
-
getAllRulesByDomain
public List<RuleEntity> getAllRulesByDomain(String domain) throws javax.persistence.PersistenceException - Throws:
javax.persistence.PersistenceException
-
getAllRulesWithNullDomain
- Throws:
javax.persistence.PersistenceException
-
getDomainList
- Throws:
javax.persistence.PersistenceException
-
getRulesTotalScoreByDomain
public long getRulesTotalScoreByDomain(long domainId) throws javax.persistence.PersistenceException - Throws:
javax.persistence.PersistenceException
-
getAllEvents
- Throws:
javax.persistence.PersistenceException
-
getRuleEventsByType
-
getRuleIdsByType
-
findRulesIdsByFilter
-
countRulesByFilter
-