|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ImplicitTransactionManagementPolicy> com.google.appengine.api.datastore.ImplicitTransactionManagementPolicy
public enum ImplicitTransactionManagementPolicy
Describes the various policies the datastore can follow for implicit
transaction management. When deciding which policy to use, keep the
following in mind: The datastore will automatically retry operations
that fail due to concurrent updates to the same entity group if the
operation is not part of a transaction. The datastore will not retry
operations that fail due to concurrent updates to the same entity group
if the operation is part of a transaction, and will instead immediately
throw a ConcurrentModificationException
. If your application
needs to perform any sort of intelligent merging when concurrent attempts
are made to update the same entity group you probably want AUTO
,
otherwise NONE
is probably acceptable.
See DatastoreService
for a list of operations that perform implicit
transaction management.
Enum Constant Summary | |
---|---|
AUTO
If a current transaction exists, use it, otherwise create one. |
|
NONE
If a current transaction exists, use it, otherwise execute without a transaction. |
Method Summary | |
---|---|
static ImplicitTransactionManagementPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ImplicitTransactionManagementPolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ImplicitTransactionManagementPolicy NONE
public static final ImplicitTransactionManagementPolicy AUTO
Method Detail |
---|
public static ImplicitTransactionManagementPolicy[] values()
for (ImplicitTransactionManagementPolicy c : ImplicitTransactionManagementPolicy.values()) System.out.println(c);
public static ImplicitTransactionManagementPolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |