Package org.exoplatform.agenda.dao
Class EventDAO
java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,Long>
org.exoplatform.agenda.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
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
ConstructorsConstructorDescriptionEventDAO(EventConferenceDAO eventConferenceDAO, EventAttendeeDAO eventAttendeeDAO, EventReminderDAO eventReminderDAO, EventRecurrenceDAO eventRecurrenceDAO, RemoteEventDAO remoteEventDAO, EventDateOptionDAO dateOptionDAO, EventDatePollDAO datePollDAO) -
Method Summary
Modifier and TypeMethodDescriptioncountEventDatePolls(List<Long> attendeeIds, Date fromDate) countPendingEvents(Long userIdentityId, List<Long> attendeeIds, Date fromDate) longcountPendingEventsByOwnerIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, Date fromDate) create(EventEntity entity) voiddelete(EventEntity entity) voidvoiddeleteCalendarEvents(long calendarId) deleteEvent(long eventId) voiddeleteExceptionalOccurences(long parentRecurrentEventId) voidexecuteDeleteCalendarEventsQuery(long calendarId) getEventDatePollIds(Long userIdentityId, List<Long> attendeeIds, Date fromDate, int offset, int limit) getEventDatePollIdsByOwnerIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, Date fromDate, int offset, int limit) getEventDatePollIdsByOwnerIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, Date start, Date end) getEventIds(Date startDate, Date endDate, List<Long> ownerIds, List<Long> attendeeIds, List<org.exoplatform.agenda.constant.EventAttendeeResponse> responseTypes, int limit) getExceptionalOccurenceIds(long parentRecurrentEventId) getExceptionalOccurenceIdsByPeriod(long parentRecurrentEventId, Date startDate, Date endDate) getExceptionalOccurenceIdsByStart(long parentRecurrentEventId, Date startDate) getParentRecurrentEventIds(Date startDate, Date endDate) getPendingEventIds(Long userIdentityId, List<Long> attendeeIds, Date fromDate, int offset, int limit) getPendingEventIdsByOwnerIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, Date fromDate, int offset, int limit) update(EventEntity entity) voidupdateAll(List<EventEntity> entities) Methods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, createAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect
-
Constructor Details
-
EventDAO
public EventDAO(EventConferenceDAO eventConferenceDAO, EventAttendeeDAO eventAttendeeDAO, EventReminderDAO eventReminderDAO, EventRecurrenceDAO eventRecurrenceDAO, RemoteEventDAO remoteEventDAO, EventDateOptionDAO dateOptionDAO, EventDatePollDAO datePollDAO)
-
-
Method Details
-
delete
- Specified by:
deletein interfaceorg.exoplatform.commons.api.persistence.GenericDAO<EventEntity,Long> - Overrides:
deletein classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,Long>
-
deleteCalendarEvents
public void deleteCalendarEvents(long calendarId) -
deleteEvent
-
create
- Specified by:
createin interfaceorg.exoplatform.commons.api.persistence.GenericDAO<EventEntity,Long> - Overrides:
createin classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,Long>
-
update
- Specified by:
updatein interfaceorg.exoplatform.commons.api.persistence.GenericDAO<EventEntity,Long> - Overrides:
updatein classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,Long>
-
deleteAll
public void deleteAll()- Specified by:
deleteAllin interfaceorg.exoplatform.commons.api.persistence.GenericDAO<EventEntity,Long> - Overrides:
deleteAllin classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,Long>
-
updateAll
- Specified by:
updateAllin interfaceorg.exoplatform.commons.api.persistence.GenericDAO<EventEntity,Long> - Overrides:
updateAllin classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,Long>
-
executeDeleteCalendarEventsQuery
public void executeDeleteCalendarEventsQuery(long calendarId) -
getEventIds
-
getPendingEventIds
-
countPendingEvents
-
getPendingEventIdsByOwnerIds
-
countPendingEventsByOwnerIds
-
getEventDatePollIds
-
getEventDatePollIds
-
countEventDatePolls
-
getEventDatePollIdsByOwnerIds
-
getEventDatePollIdsByOwnerIds
-
countEventDatePollsByOwnerIds
-
getParentRecurrentEventIds
-
getExceptionalOccurenceIdsByPeriod
-
getExceptionalOccurenceIdsByStart
-
getExceptionalOccurenceIds
-
deleteExceptionalOccurences
public void deleteExceptionalOccurences(long parentRecurrentEventId)
-