TransactionOptions.Builder (Google App Engine API for Java)

com.google.appengine.api.datastore

Class TransactionOptions.Builder

  • java.lang.Object
    • com.google.appengine.api.datastore.TransactionOptions.Builder
    • Method Detail

      • withXG

        public static TransactionOptions withXG(boolean enable)
        Create a TransactionOptions that enables or disables the use of cross-group transactions. Shorthand for TransactionOptions.withDefaults().setXG(...);
        Parameters:
        enable - true to allow cross-group transactions, false to restrict transactions to a single entity group.
        Returns:
        this (for chaining)
      • withDefaults

        public static TransactionOptions withDefaults()
        Helper method for creating a TransactionOptions instance with default values. The defaults is false (disabled) for XG.

Send feedback about...