public enum SynchronizationType extends 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(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.