build

abstract fun build(from: CalendarComponent, main: CalendarComponent, to: Entity)

Maps a specific part of the given component (VToDo or VJournal) into the provided Entity.

If from references the same object as main, this method is called for a main component (not an exception). If from references another object as main, this method is called for an exception (not a main component).

Note: The result of the mapping is used to either create or update the jtx object row in the jtx Board content provider. For updates, explicit null values are required for fields that should be null (otherwise the value wouldn't be updated to null in case of a jtx object update). Sub-rows of the Entity will always be created anew, so there's no need to use null values in sub-rows.

Parameters

from

component to map (will always be VToDo or VJournal)

main

main component (will always be VToDo or VJournal)

to

destination object where built values are stored (set null values, see note)

Throws

on missing or invalid required properties