Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

TransactionHelper (Google App Engine API for Java)

com.google.appengine.api.datastore

Class TransactionHelper

  • java.lang.Object
    • com.google.appengine.api.datastore.TransactionHelper


  • public final class TransactionHelper
    extends java.lang.Object
    TransactionHelper enables the task queue API to serialize a datastore transaction without knowing the details of how it is implemented.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void setTransaction(Transaction txn, TaskQueueAddRequest request)
      Sets either the transaction or datastore_transaction field in a TaskQueueAddRequest depending on what kind of transaction is provided.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setTransaction

        public static void setTransaction(Transaction txn,
                                          TaskQueueAddRequest request)
        Sets either the transaction or datastore_transaction field in a TaskQueueAddRequest depending on what kind of transaction is provided.