Skip to main content

WriteKind

enum WriteKind : Enum<WriteKind>

How an object came to be in the store after a transaction wrote it.

Entries​

MUTATEMUTATE
The object existed already and the transaction changed its contents.
CREATECREATE
The transaction created the object.
UNWRAPUNWRAP
The object was wrapped inside another object, and the transaction restored it to the store.

Properties​

NameSummary
entriesval entries: EnumEntries<WriteKind>
Returns a representation of an immutable list of all enum entries, in the order they're declared.
nameval name: String
ordinalval ordinal: Int

Functions​

NameSummary
valueOffun valueOf(value: String): WriteKind
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
valuesfun values(): Array<WriteKind>
Returns an array containing the constants of this enum type, in the order they're declared.

CREATE​

CREATE

The transaction created the object.

Properties​

NameSummary
nameval name: String
ordinalval ordinal: Int

MUTATE​

MUTATE

The object existed already and the transaction changed its contents.

Properties​

NameSummary
nameval name: String
ordinalval ordinal: Int

UNWRAP​

UNWRAP

The object was wrapped inside another object, and the transaction restored it to the store.

Properties​

NameSummary
nameval name: String
ordinalval ordinal: Int