updateEvent

fun updateEvent(id: Long, entity: Entity): Long

Updates an event and applies the eventStatus=null workaround, if necessary.

While the event row can be updated, sub-values (data rows) are always deleted and created from scratch.

Return

ID of the updated event (not necessarily the same as the original event)

Parameters

id

ID of the event to update

entity

new values of the event


fun updateEvent(id: Long, entity: Entity, batch: CalendarBatchOperation): Int?

Enqueues an update of an event and applies the eventStatus=null workaround, if necessary.

While the event row can be updated, sub-values (data rows) are always deleted and created from scratch.

Return

null if an event update was enqueued so that its ID won't change; otherwise (if re-build is needed) the result index of the new event ID.

Parameters

id

ID of the event to update

entity

new values of the event

batch

batch operation in which the update is enqueued