Uses of Interface
com.google.appengine.api.datastore.Transaction
-
Packages that use Transaction Package Description com.google.appengine.api.datastore com.google.appengine.api.taskqueue Provides a mechanism to perform work initiated by a user request, outside of that request. -
-
Uses of Transaction in com.google.appengine.api.datastore
Methods in com.google.appengine.api.datastore that return Transaction Modifier and Type Method Description Transaction
DatastoreService. beginTransaction()
Equivalent tobeginTransaction(TransactionOptions.Builder.withDefaults())
.Transaction
DatastoreService. beginTransaction(TransactionOptions options)
Begins a transaction against the datastore.Transaction
AdminDatastoreService. getCurrentTransaction()
Transaction
AdminDatastoreService. getCurrentTransaction(Transaction returnedIfNoTxn)
Transaction
BaseDatastoreService. getCurrentTransaction()
Returns the current transaction for this thread, or throws an exception if there is no current transaction.Transaction
BaseDatastoreService. getCurrentTransaction(Transaction returnedIfNoTxn)
Returns the current transaction for this thread, or returns the parameter if there is no current transaction.Transaction
CallbackContext. getCurrentTransaction()
Returns the current transaction, ornull
if there is no current transaction.@Nullable Transaction
TransactionOptions. previousTransaction()
Return the previous transaction that is being retried, ornull
if none was provided.Methods in com.google.appengine.api.datastore that return types with arguments of type Transaction Modifier and Type Method Description Future<Transaction>
AdminDatastoreService. beginTransaction()
Future<Transaction>
AdminDatastoreService. beginTransaction(TransactionOptions options)
Future<Transaction>
AsyncDatastoreService. beginTransaction()
Future<Transaction>
AsyncDatastoreService. beginTransaction(TransactionOptions options)
Collection<Transaction>
AdminDatastoreService. getActiveTransactions()
Collection<Transaction>
BaseDatastoreService. getActiveTransactions()
Returns allTransaction
s started by this thread upon which no attempt to commit or rollback has been made.Methods in com.google.appengine.api.datastore with parameters of type Transaction Modifier and Type Method Description Future<Void>
AdminDatastoreService. delete(@Nullable Transaction txn, Key... keys)
Future<Void>
AdminDatastoreService. delete(@Nullable Transaction txn, Iterable<Key> keys)
Future<Void>
AsyncDatastoreService. delete(@Nullable Transaction txn, Key... keys)
Future<Void>
AsyncDatastoreService. delete(@Nullable Transaction txn, Iterable<Key> keys)
void
DatastoreService. delete(Transaction txn, Key... keys)
Exhibits the same behavior asDatastoreService.delete(Key...)
, but executes within the provided transaction.void
DatastoreService. delete(Transaction txn, Iterable<Key> keys)
Exhibits the same behavior asDatastoreService.delete(Iterable)
, but executes within the provided transaction.Future<Entity>
AdminDatastoreService. get(@Nullable Transaction txn, Key key)
Future<Map<Key,Entity>>
AdminDatastoreService. get(@Nullable Transaction txn, Iterable<Key> keys)
Future<Entity>
AsyncDatastoreService. get(@Nullable Transaction txn, Key key)
Future<Map<Key,Entity>>
AsyncDatastoreService. get(@Nullable Transaction txn, Iterable<Key> keys)
Entity
DatastoreService. get(Transaction txn, Key key)
Exhibits the same behavior asDatastoreService.get(Key)
, but executes within the provided transaction.Map<Key,Entity>
DatastoreService. get(Transaction txn, Iterable<Key> keys)
Exhibits the same behavior asDatastoreService.get(Iterable)
, but executes within the provided transaction.Transaction
AdminDatastoreService. getCurrentTransaction(Transaction returnedIfNoTxn)
Transaction
BaseDatastoreService. getCurrentTransaction(Transaction returnedIfNoTxn)
Returns the current transaction for this thread, or returns the parameter if there is no current transaction.PreparedQuery
AdminDatastoreService. prepare(Transaction txn, Query query)
PreparedQuery
BaseDatastoreService. prepare(Transaction txn, Query query)
Exhibits the same behavior asBaseDatastoreService.prepare(Query)
, but executes within the provided transaction.Future<Key>
AdminDatastoreService. put(@Nullable Transaction txn, Entity entity)
Future<List<Key>>
AdminDatastoreService. put(@Nullable Transaction txn, Iterable<Entity> entities)
Future<Key>
AsyncDatastoreService. put(@Nullable Transaction txn, Entity entity)
Future<List<Key>>
AsyncDatastoreService. put(@Nullable Transaction txn, Iterable<Entity> entities)
Key
DatastoreService. put(Transaction txn, Entity entity)
Exhibits the same behavior asDatastoreService.put(Entity)
, but executes within the provided transaction.List<Key>
DatastoreService. put(Transaction txn, Iterable<Entity> entities)
Exhibits the same behavior asDatastoreService.put(Iterable)
, but executes within the provided transaction.TransactionOptions
TransactionOptions. setPreviousTransaction(Transaction previousTransaction)
Set which previous transaction to retry.static void
TransactionHelper. setTransaction(Transaction txn, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Builder request)
Sets either the transaction or datastore_transaction field in a TaskQueueAddRequest depending on what kind of transaction is provided.static TransactionOptions
TransactionOptions.Builder. withPreviousTransaction(Transaction previousTransaction)
Shorthand forTransactionOptions.withTransactionMode(Mode.READ_WRITE).setPreviousTransaction(...);
-
Uses of Transaction in com.google.appengine.api.taskqueue
Methods in com.google.appengine.api.taskqueue with parameters of type Transaction Modifier and Type Method Description TaskHandle
Queue. add(Transaction txn, TaskOptions taskOptions)
Submits a task to this queue in the provided Transaction.List<TaskHandle>
Queue. add(Transaction txn, Iterable<TaskOptions> taskOptions)
Submits tasks to this queue in the provided Transaction.Future<TaskHandle>
Queue. addAsync(Transaction txn, TaskOptions taskOptions)
Asynchronously submits a task to this queue in the provided Transaction.Future<List<TaskHandle>>
Queue. addAsync(Transaction txn, Iterable<TaskOptions> taskOptions)
Asynchronously submits tasks to this queue in the provided Transaction.
-