com.google.appengine.api.datastore
Class TransactionOptions

java.lang.Object
  extended by com.google.appengine.api.datastore.TransactionOptions

public final class TransactionOptions
extends java.lang.Object

Describes options for transactions, passed at transaction creation time.

multipleEntityGroups is a boolean that enables or disables the use of multiple entity groups in a single transaction.

Notes on usage:
The recommended way to instantiate a TransactionsOptions object is to statically import TransactionOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):

 import static com.google.appengine.api.datastore.TransactionOptions.Builder.*;

 ...

 datastoreService.beginTransaction(allowMultipleEntityGroups(true));

 


Nested Class Summary
static class TransactionOptions.Builder
          Contains static creation methods for TransactionOptions.
 
Method Summary
 java.lang.Boolean allowsMultipleEntityGroups()
           
 TransactionOptions clearMultipleEntityGroups()
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 TransactionOptions multipleEntityGroups(boolean enable)
          Enable or disable the use of multiple entity groups in a single transaction.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

multipleEntityGroups

public TransactionOptions multipleEntityGroups(boolean enable)
Enable or disable the use of multiple entity groups in a single transaction.

Parameters:
enable - true to allow multiple entity groups in a transaction, false to restrict transactions to a single entity group.
Returns:
this (for chaining)

clearMultipleEntityGroups

public TransactionOptions clearMultipleEntityGroups()

allowsMultipleEntityGroups

public java.lang.Boolean allowsMultipleEntityGroups()
Returns:
true if multiple entity groups are allowed in the transaction, false if they are not allowed, or null if the setting was not provided.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object