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 TransactionDatastoreService. beginTransaction()Equivalent tobeginTransaction(TransactionOptions.Builder.withDefaults()).TransactionDatastoreService. beginTransaction(TransactionOptions options)Begins a transaction against the datastore.TransactionAdminDatastoreService. getCurrentTransaction()TransactionAdminDatastoreService. getCurrentTransaction(Transaction returnedIfNoTxn)TransactionBaseDatastoreService. getCurrentTransaction()Returns the current transaction for this thread, or throws an exception if there is no current transaction.TransactionBaseDatastoreService. getCurrentTransaction(Transaction returnedIfNoTxn)Returns the current transaction for this thread, or returns the parameter if there is no current transaction.TransactionCallbackContext. getCurrentTransaction()Returns the current transaction, ornullif there is no current transaction.@Nullable TransactionTransactionOptions. previousTransaction()Return the previous transaction that is being retried, ornullif 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 allTransactions 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)voidDatastoreService. delete(Transaction txn, Key... keys)Exhibits the same behavior asDatastoreService.delete(Key...), but executes within the provided transaction.voidDatastoreService. 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)EntityDatastoreService. 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.TransactionAdminDatastoreService. getCurrentTransaction(Transaction returnedIfNoTxn)TransactionBaseDatastoreService. getCurrentTransaction(Transaction returnedIfNoTxn)Returns the current transaction for this thread, or returns the parameter if there is no current transaction.PreparedQueryAdminDatastoreService. prepare(Transaction txn, Query query)PreparedQueryBaseDatastoreService. 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)KeyDatastoreService. 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.TransactionOptionsTransactionOptions. setPreviousTransaction(Transaction previousTransaction)Set which previous transaction to retry.static voidTransactionHelper. 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 TransactionOptionsTransactionOptions.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 TaskHandleQueue. 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.
-