TransactionBuilder
此内容尚不支持你的语言。
Defined in: transaction/src/transaction.ts:241
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TransactionBuilder():
TransactionBuilder
Returns
Section titled “Returns”TransactionBuilder
Accessors
Section titled “Accessors”operations
Section titled “operations”Get Signature
Section titled “Get Signature”get operations(): readonly
AtomicOperation[]
Defined in: transaction/src/transaction.ts:244
Returns
Section titled “Returns”readonly AtomicOperation[]
Methods
Section titled “Methods”appendOperations()
Section titled “appendOperations()”appendOperations(
operations):void
Defined in: transaction/src/transaction.ts:254
Appends an already validated operation sequence to this transaction.
This is primarily used by history/replay adapters. Operations are cloned so callers cannot mutate a transaction after it has been committed.
Parameters
Section titled “Parameters”operations
Section titled “operations”readonly AtomicOperation[]
Returns
Section titled “Returns”void
createEntity()
Section titled “createEntity()”createEntity(
collection,id,value):void
Defined in: transaction/src/transaction.ts:264
Parameters
Section titled “Parameters”collection
Section titled “collection”string
Returns
Section titled “Returns”void
deleteEntity()
Section titled “deleteEntity()”deleteEntity(
collection,id):void
Defined in: transaction/src/transaction.ts:268
Parameters
Section titled “Parameters”collection
Section titled “collection”string
Returns
Section titled “Returns”void
listInsert()
Section titled “listInsert()”listInsert(
collection,id,path,valueId,beforeId?):void
Defined in: transaction/src/transaction.ts:285
Parameters
Section titled “Parameters”collection
Section titled “collection”string
readonly string[]
valueId
Section titled “valueId”string
beforeId?
Section titled “beforeId?”string
Returns
Section titled “Returns”void
listMove()
Section titled “listMove()”listMove(
collection,id,path,valueId,beforeId?):void
Defined in: transaction/src/transaction.ts:311
Parameters
Section titled “Parameters”collection
Section titled “collection”string
readonly string[]
valueId
Section titled “valueId”string
beforeId?
Section titled “beforeId?”string
Returns
Section titled “Returns”void
listRemove()
Section titled “listRemove()”listRemove(
collection,id,path,valueId):void
Defined in: transaction/src/transaction.ts:302
Parameters
Section titled “Parameters”collection
Section titled “collection”string
readonly string[]
valueId
Section titled “valueId”string
Returns
Section titled “Returns”void
removeField()
Section titled “removeField()”removeField(
collection,id,path):void
Defined in: transaction/src/transaction.ts:281
Parameters
Section titled “Parameters”collection
Section titled “collection”string
readonly string[]
Returns
Section titled “Returns”void
setField()
Section titled “setField()”setField(
collection,id,path,value):void
Defined in: transaction/src/transaction.ts:272
Parameters
Section titled “Parameters”collection
Section titled “collection”string
readonly string[]
Returns
Section titled “Returns”void