Describes a logical unit of work to be performed against the datastore. Operations performed as
part of a single Transaction succeed or fail as a unit. Transactions can be committed and
rolled back synchronously and asynchronously.
Methods
commit()
publicabstractvoidcommit()
Commits the transaction. Whether this call succeeds or fails, all subsequent method invocations
on this object will throw IllegalStateException.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["Transactions define a unit of work against a datastore, where all operations either succeed or fail together."],["Transactions can be committed using `commit()` or `commitAsync()`, which provides asynchronous execution."],["Transactions can be rolled back using `rollback()` or `rollbackAsync()`, with the latter also providing asynchronous capabilities."],["Each transaction has a unique ID accessible via `getId()` and is associated with a specific application ID obtainable through `getApp()`."],["The `isActive()` method indicates whether a transaction is currently active."]]],[]]