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>
-
Field Summary
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecountRewardsByIdentityId(long identityId) findRewardByIdentityIdAndPeriodId(long identityId, long periodId) findRewardsByIdentityId(long identityId, int limit) findRewardsByPeriodId(long periodId) voidreplaceRewardTransactions(String oldHash, String newHash) Methods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAll
-
Constructor Details
-
RewardDAO
public RewardDAO()
-
-
Method Details
-
findRewardsByPeriodId
-
findRewardsByIdentityId
-
countRewardsByIdentityId
public double countRewardsByIdentityId(long identityId) -
findRewardByIdentityIdAndPeriodId
-
replaceRewardTransactions
-