Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.google.appengine.api.datastore
Class TransactionOptions.Builder

    java.lang.Object
      com.google.appengine.api.datastore.TransactionOptions.Builder

Enclosing class:
  TransactionOptions

    public static final class TransactionOptions.Builder

extends java.lang.Object

Contains static creation methods for `TransactionOptions`.

Method Summary
`static TransactionOptions` | `allowMultipleEntityGroups(boolean enable)` Create a `TransactionOptions` that enables or disables the use of multiple entity groups in a single transaction.
`static TransactionOptions` | `withDefaults()` Helper method for creating a `TransactionOptions` instance with default values.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### allowMultipleEntityGroups

    public static TransactionOptions allowMultipleEntityGroups(boolean enable)

  Create a `TransactionOptions` that enables or disables the use of multiple entity groups in a single transaction. Shorthand for `TransactionOptions.withDefaults().allowMultipleEntityGroups(...);`

  Parameters:
    `enable` - true to allow multiple entity groups in a transaction, 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 are `null` for all values.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD