Updater

class UpdaterTrait>

Trait attribute updater that builds the list of attributes to be updated.

Summary

Public constructors

Trait> Updater()

Public functions

Updater
addUpdate(updaterBlock: Updater.() -> Unit)

Add an attribute update to the list of attributes to be updated.

Map<FieldAny?>

Get the map of attributes to be updated.

Public constructors

Updater

Trait> Updater()

Public functions

addUpdate

fun addUpdate(updaterBlock: Updater.() -> Unit): Updater

Add an attribute update to the list of attributes to be updated.

Parameters
updaterBlock: Updater.() -> Unit

The block of Updater code

getUpdatesMap

fun getUpdatesMap(): Map<FieldAny?>

Get the map of attributes to be updated.

Returns
Map<FieldAny?>

The map of attributes to be updated.

Public properties

attributesToUpdate

val attributesToUpdateMutableList<AttributeToUpdate>