Class: Operation

Operation

new Operation(tableName, type, row, returnChoice, abortIfUnsuccessful, matchVersion)

Defines an update operation to be passed to Store.executeOperations().
Parameters:
Name Type Description
tableName String The table name on which this operation is executed on.
type OperationType Determines which update operation to be executed.
row Row For put operations: represents the row to be stored. For delete operations: represents the key of the row to be deleted.
returnChoice ReturnChoice Specifies whether to return the row value, version, both or neither.
abortIfUnsuccessful Bool True if this operation should cause the execute transaction to abort when the operation fails, where failure is the condition when the delete or put method returns null.
matchVersion Version The version to be matched for: putIfVersion and deleteIfVersion.
Properties:
Name Type Description
tableName String The table name on which this operation is executed on.
type OperationType Determines which update operation to be executed.
row Row For put operations: represents the row to be stored. For delete operations: represents the key of the row to be deleted.
returnChoice ReturnChoice Specifies whether to return the row value, version, both or neither.
abortIfUnsuccessful Bool True if this operation should cause the execute transaction to abort when the operation fails, where failure is the condition when the delete or put method returns null.
matchVersion Version The version to be matched for: putIfVersion and deleteIfVersion.
Source: