public enum PersistenceContextScope extends Enum<PersistenceContextScope>
| Enum Constant and Description |
|---|
QUERY
PersistenceContext is scoped to the query.
|
TRANSACTION
PersistenceContext is scoped to the transaction.
|
| Modifier and Type | Method and Description |
|---|---|
static PersistenceContextScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersistenceContextScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistenceContextScope TRANSACTION
public static final PersistenceContextScope QUERY
public static PersistenceContextScope[] values()
for (PersistenceContextScope c : PersistenceContextScope.values()) System.out.println(c);
public static PersistenceContextScope 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 © 2019. All rights reserved.