Interface CalendarDao
- All Known Implementing Classes:
CalendarDaoImpl
public interface CalendarDao
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAndLinkCalendarEvent
(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 CalendarEvent
Loads a 'shallow' calendar event specified by the id.@Nullable Entity
loadEventEntity
(UUID id, @Nullable Context context) mapCalendar
(Entity calEntity, EntityFilter calendarEventEntityFilter) Creates aCalendar
object from the specified entity.mapCalendarEvent
(Entity calendarEventEntity, EntityFilter calendarEventEntityFilter) resolveRelation
(CalendarEvent event, @Nullable Context context) resolveRelation
(CalendarEvent event, String relationName, @Nullable Context context) void
saveCalendar
(Calendar cal, @Nullable Context context) void
saveEvent
(CalendarEvent calendarEvent, @Nullable Context context) void
saveEventAndCalendarRelation
(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 aCalendar
object 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
-