Interface CalendarDao
- All Known Implementing Classes:
CalendarDaoImpl
public interface CalendarDao
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAndLinkCalendarEvent(CalendarEvent event, String relationName, Entity target) Saves the specified calendar event to db and links the target entity to the calendar event.findCalendars(EntityFilter calendarEntityFilter, EntityFilter calendarEventEntityFilter, @Nullable Context context) @Nullable CalendarEventLoads a 'shallow' calendar event specified by the id.@Nullable EntityloadEventEntity(UUID id, @Nullable Context context) mapCalendar(Entity calEntity, EntityFilter calendarEventEntityFilter) Creates aCalendarobject from the specified entity.mapCalendarEvent(Entity calendarEventEntity, EntityFilter calendarEventEntityFilter) resolveRelation(CalendarEvent event, @Nullable Context context) resolveRelation(CalendarEvent event, String relationName, @Nullable Context context) voidsaveCalendar(Calendar cal, @Nullable Context context) voidsaveEvent(CalendarEvent calendarEvent, @Nullable Context context) voidsaveEventAndCalendarRelation(CalendarEvent calendarEvent)
-
Method Details
-
findCalendars
List<Calendar> findCalendars(EntityFilter calendarEntityFilter, EntityFilter calendarEventEntityFilter, @Nullable @Nullable Context context) -
loadEvent
Loads a 'shallow' calendar event specified by the id. Shallow means, it has no calendar attached. -
loadEventEntity
-
saveCalendar
-
resolveRelation
-
resolveRelation
Relation resolveRelation(CalendarEvent event, String relationName, @Nullable @Nullable Context context) -
mapCalendar
Creates aCalendarobject from the specified entity. If target is not null, only events that are linked to this entity are returned. -
mapCalendarEvent
-
addAndLinkCalendarEvent
Saves the specified calendar event to db and links the target entity to the calendar event. The calendar event must be attached to a calendar (callCalendar.addEvent(CalendarEvent)for this).- Parameters:
event- a new eventtarget- a target entity that is linked to the event
-
saveEvent
-
saveEventAndCalendarRelation
-