public enum PersistenceMode extends Enum<PersistenceMode>
Modifier and Type | Method and Description |
---|---|
static PersistenceMode |
fromValue(String value) |
String |
toString() |
String |
value() |
static PersistenceMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersistenceMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistenceMode ACTIVE
public static final PersistenceMode ON_DEMAND
public static PersistenceMode[] values()
for (PersistenceMode c : PersistenceMode.values()) System.out.println(c);
public static PersistenceMode 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 nullpublic static PersistenceMode fromValue(String value)
public String toString()
toString
in class Enum<PersistenceMode>
public String value()