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>
  • Constructor Details

    • RuleDAO

      public RuleDAO()
  • Method Details

    • findHighestBudgetProgramIds

      public List<Long> findHighestBudgetProgramIds(int offset, int limit)
    • findHighestBudgetOpenProgramIds

      public List<Long> findHighestBudgetOpenProgramIds(int offset, int limit)
    • findHighestBudgetProgramIdsBySpacesIds

      public List<Long> findHighestBudgetProgramIdsBySpacesIds(List<Long> spacesIds, int offset, int limit)
    • findRuleByTitle

      public RuleEntity findRuleByTitle(String ruleTitle) throws javax.persistence.PersistenceException
      Throws:
      javax.persistence.PersistenceException
    • findActiveRuleByEventAndProgramId

      public RuleEntity findActiveRuleByEventAndProgramId(String event, long domainId) throws javax.persistence.PersistenceException
      Throws:
      javax.persistence.PersistenceException
    • getRulesTotalScoreByProgramId

      public long getRulesTotalScoreByProgramId(long domainId) throws javax.persistence.PersistenceException
      Throws:
      javax.persistence.PersistenceException
    • findRulesIdsByFilter

      public List<Long> findRulesIdsByFilter(RuleFilter filter, int offset, int limit)
    • countRulesByFilter

      public int countRulesByFilter(RuleFilter filter)