Interface CalendarDao

All Known Implementing Classes:
CalendarDaoImpl

public interface CalendarDao
  • Method Details

    • findCalendars

      List<Calendar> findCalendars(EntityFilter calendarEntityFilter, EntityFilter calendarEventEntityFilter, @Nullable @Nullable Context context)
    • loadEvent

      @Nullable @Nullable CalendarEvent loadEvent(UUID id, @Nullable @Nullable Context context)
      Loads a 'shallow' calendar event specified by the id. Shallow means, it has no calendar attached.
    • loadEventEntity

      @Nullable @Nullable Entity loadEventEntity(UUID id, @Nullable @Nullable Context context)
    • saveCalendar

      void saveCalendar(Calendar cal, @Nullable @Nullable Context context)
    • resolveRelation

      Relation resolveRelation(CalendarEvent event, @Nullable @Nullable Context context)
    • resolveRelation

      Relation resolveRelation(CalendarEvent event, String relationName, @Nullable @Nullable Context context)
    • mapCalendar

      Calendar mapCalendar(Entity calEntity, EntityFilter calendarEventEntityFilter)
      Creates a Calendar object from the specified entity. If target is not null, only events that are linked to this entity are returned.
    • mapCalendarEvent

      CalendarEvent mapCalendarEvent(Entity calendarEventEntity, EntityFilter calendarEventEntityFilter)
    • addAndLinkCalendarEvent

      void addAndLinkCalendarEvent(CalendarEvent event, String relationName, Entity target)
      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 (call Calendar.addEvent(CalendarEvent) for this).
      Parameters:
      event - a new event
      target - a target entity that is linked to the event
    • saveEvent

      void saveEvent(CalendarEvent calendarEvent, @Nullable @Nullable Context context)
    • saveEventAndCalendarRelation

      void saveEventAndCalendarRelation(CalendarEvent calendarEvent)