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 Summary
Constructors Constructor Description RewardDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecountRewardsByIdentityId(long identityId)WalletRewardEntityfindRewardByIdentityIdAndPeriodId(long identityId, long periodId)List<WalletRewardEntity>findRewardsByIdentityId(long identityId, int limit)List<WalletRewardEntity>findRewardsByPeriodId(long periodId)voidreplaceRewardTransactions(String oldHash, String newHash)
-
-
-
Method Detail
-
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)
-
-