Package io.meeds.gamification.dao
Class EventDAO
java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,Long>
io.meeds.gamification.dao.EventDAO
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<EventEntity,Long>
public class EventDAO
extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,Long>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcountEventByFilter(EventFilter filter) Count all gamification events by filterfindEventsByFilter(EventFilter filter, int offset, int limit) Get all gamification events by filtergetEventByTitleAndTrigger(String title, String trigger) Get gamification event by event title and trigger namegetEventsByTitle(String title, int offset, int limit) Methods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAll
-
Field Details
-
TYPE
- See Also:
-
TRIGGERS
- See Also:
-
TITLE
- See Also:
-
TRIGGER
- See Also:
-
-
Constructor Details
-
EventDAO
public EventDAO()
-
-
Method Details
-
getEventByTitleAndTrigger
Get gamification event by event title and trigger name- Parameters:
title- event titletrigger- trigger name- Returns:
- list of type EventEntity
-
getEventsByTitle
-
findEventsByFilter
Get all gamification events by filter- Parameters:
filter-EventFilteroffset- Offset of resultlimit- Limit of result- Returns:
- list of type EventEntity
-
countEventByFilter
Count all gamification events by filter- Parameters:
filter-EventFilter- Returns:
- events count
-