Package org.exoplatform.kudos.dao
Class KudosDAO
- java.lang.Object
-
- org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<KudosEntity,Long>
-
- org.exoplatform.kudos.dao.KudosDAO
-
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<KudosEntity,Long>
public class KudosDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<KudosEntity,Long>
-
-
Constructor Summary
Constructors Constructor Description KudosDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcountKudosByEntity(int entityType, long entityId)longcountKudosByEntityAndSender(int entityType, long entityId, long senderId)longcountKudosByPeriodAndReceiver(KudosPeriod kudosPeriod, long receiverId, boolean isReceiverUser)longcountKudosByPeriodAndSender(KudosPeriod kudosPeriod, long senderId)KudosEntitygetKudosByActivityId(Long activityId)List<KudosEntity>getKudosByEntity(int entityType, long entityId, int limit)List<KudosEntity>getKudosByPeriod(KudosPeriod kudosPeriod, int limit)List<KudosEntity>getKudosByPeriodAndEntityType(KudosPeriod kudosPeriod, int entityType, int limit)List<KudosEntity>getKudosByPeriodAndReceiver(KudosPeriod kudosPeriod, long receiverId, boolean isReceiverUser, int limit)List<KudosEntity>getKudosByPeriodAndSender(KudosPeriod kudosPeriod, long senderId, int limit)List<KudosEntity>getKudosListOfActivity(Long activityId)
-
-
-
Method Detail
-
getKudosByPeriod
public List<KudosEntity> getKudosByPeriod(KudosPeriod kudosPeriod, int limit)
-
getKudosByPeriodAndEntityType
public List<KudosEntity> getKudosByPeriodAndEntityType(KudosPeriod kudosPeriod, int entityType, int limit)
-
getKudosByEntity
public List<KudosEntity> getKudosByEntity(int entityType, long entityId, int limit)
-
getKudosByPeriodAndReceiver
public List<KudosEntity> getKudosByPeriodAndReceiver(KudosPeriod kudosPeriod, long receiverId, boolean isReceiverUser, int limit)
-
countKudosByEntity
public long countKudosByEntity(int entityType, long entityId)
-
countKudosByEntityAndSender
public long countKudosByEntityAndSender(int entityType, long entityId, long senderId)
-
countKudosByPeriodAndReceiver
public long countKudosByPeriodAndReceiver(KudosPeriod kudosPeriod, long receiverId, boolean isReceiverUser)
-
getKudosByPeriodAndSender
public List<KudosEntity> getKudosByPeriodAndSender(KudosPeriod kudosPeriod, long senderId, int limit)
-
getKudosByActivityId
public KudosEntity getKudosByActivityId(Long activityId)
-
getKudosListOfActivity
public List<KudosEntity> getKudosListOfActivity(Long activityId)
-
countKudosByPeriodAndSender
public long countKudosByPeriodAndSender(KudosPeriod kudosPeriod, long senderId)
-
-