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)` Deprecated.
`static TransactionOptions` | `withDefaults()` Helper method for creating a `TransactionOptions` instance with default values.
`static TransactionOptions` | `withXG(boolean enable)` Create a `TransactionOptions` that enables or disables the use of cross-group transactions.

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

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)

### allowMultipleEntityGroups

    @Deprecated
    public static TransactionOptions allowMultipleEntityGroups(boolean enable)

  Deprecated.

  See Also:
    `#withXG}`

### withDefaults

    public static TransactionOptions withDefaults()

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

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