Package io.meeds.gamification.dao
Class RuleDAO
java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<RuleEntity,Long>
io.meeds.gamification.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) findActiveRuleByEventAndProgramId(String event, long domainId) findHighestBudgetOpenProgramIds(int offset, int limit) findHighestBudgetProgramIds(int offset, int limit) findHighestBudgetProgramIdsBySpacesIds(List<Long> spacesIds, int offset, int limit) findRuleByTitle(String ruleTitle) findRulesIdsByFilter(RuleFilter filter, int offset, int limit) longgetRulesTotalScoreByProgramId(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
-
findHighestBudgetProgramIds
-
findHighestBudgetOpenProgramIds
-
findHighestBudgetProgramIdsBySpacesIds
-
findRuleByTitle
- Throws:
jakarta.persistence.PersistenceException
-
findActiveRuleByEventAndProgramId
public RuleEntity findActiveRuleByEventAndProgramId(String event, long domainId) throws jakarta.persistence.PersistenceException - Throws:
jakarta.persistence.PersistenceException
-
getRulesTotalScoreByProgramId
public long getRulesTotalScoreByProgramId(long domainId) throws jakarta.persistence.PersistenceException - Throws:
jakarta.persistence.PersistenceException
-
findRulesIdsByFilter
-
countRulesByFilter
-