public enum PersistenceUnitTransactionType extends Enum<PersistenceUnitTransactionType>
EntityManagerFactory
will be JTA or
resource-local entity managers.Enum Constant and Description |
---|
JTA
JTA entity managers will be created.
|
RESOURCE_LOCAL
Resource-local entity managers will be created.
|
Modifier and Type | Method and Description |
---|---|
static PersistenceUnitTransactionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersistenceUnitTransactionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistenceUnitTransactionType JTA
public static final PersistenceUnitTransactionType RESOURCE_LOCAL
public static PersistenceUnitTransactionType[] values()
for (PersistenceUnitTransactionType c : PersistenceUnitTransactionType.values()) System.out.println(c);
public static PersistenceUnitTransactionType 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 © 2018,2020 Eclipse Foundation.
Use is subject to license terms.