public enum SynchronizationType extends java.lang.Enum<SynchronizationType>
EntityManager.joinTransaction()
method.Enum Constant and Description |
---|
SYNCHRONIZED
Persistence context is automatically synchronized with the current transaction
|
UNSYNCHRONIZED
Persistence context must be explicitly joined to the current transaction
|
Modifier and Type | Method and Description |
---|---|
static SynchronizationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SynchronizationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SynchronizationType SYNCHRONIZED
public static final SynchronizationType UNSYNCHRONIZED
public static SynchronizationType[] values()
for (SynchronizationType c : SynchronizationType.values()) System.out.println(c);
public static SynchronizationType 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 namejava.lang.NullPointerException
- if the argument is null