- commit
Commit the transaction.Example of committing a transaction.
// create an entitycatch (DatastoreExce
- rollback
Rollback the transaction.Example of rolling back a transaction.
// create an entity
- get
The requested entities will be part of this Datastore transaction (so a commit
is guaranteed to fai
- isActive
Returns true if the transaction is still active (was not committed or
rolledback).Example of verifyi
- put
This operation will also remove from this transaction any prior writes for the
same entities.Exampl
- update
This operation will be converted to #put operation for entities that were
already added or put in t
- add
Example of adding multiple entities.
String keyName1 = "my_key_name1";
- addWithDeferredIdAllocation
Datastore add operation. This method will also allocate id for any entity with
an incomplete key. As
- delete
This operation will also remove from this transaction any prior writes for
entities with the same k
- fetch
The requested entities will be part of this Datastore transaction (so a commit
is guaranteed to fai
- getDatastore
Returns the transaction associated Datastore.
- putWithDeferredIdAllocation
Datastore put operation. This method will also allocate id for any entity with
an incomplete key. As