Class RewardDAO

java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<WalletRewardEntity,Long>
org.exoplatform.wallet.reward.dao.RewardDAO
All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<WalletRewardEntity,Long>

public class RewardDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<WalletRewardEntity,Long>
  • Constructor Details

    • RewardDAO

      public RewardDAO()
  • Method Details

    • findRewardsByPeriodId

      public List<WalletRewardEntity> findRewardsByPeriodId(long periodId)
    • findRewardsByIdentityId

      public List<WalletRewardEntity> findRewardsByIdentityId(long identityId, int limit)
    • countRewardsByIdentityId

      public double countRewardsByIdentityId(long identityId)
    • findRewardByIdentityIdAndPeriodId

      public WalletRewardEntity findRewardByIdentityIdAndPeriodId(long identityId, long periodId)
    • replaceRewardTransactions

      public void replaceRewardTransactions(String oldHash, String newHash)