public enum InitialPersistence extends Enum<InitialPersistence>
Enum constants identifying the initial persistence status of a service.
Enum Constant and Description |
---|
DEFAULT
Enum constant indicating that the initial persistence specified in the service’s deployment descriptor should be used.
|
DISABLED
Enum constant indicating that initial persistence should be disabled for a service (overriding deployment descriptor).
|
ENABLED
Enum constant indicating that initial persistence should be enabled for a service (overriding deployment descriptor).
|
Modifier and Type | Method and Description |
---|---|
static InitialPersistence |
fromString(String name)
Get an
InitialPersistence enum from its string representation. |
static InitialPersistence |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InitialPersistence[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InitialPersistence DEFAULT
Enum constant indicating that the initial persistence specified in the service’s deployment descriptor should be used.
public static final InitialPersistence ENABLED
Enum constant indicating that initial persistence should be enabled for a service (overriding deployment descriptor).
public static final InitialPersistence DISABLED
Enum constant indicating that initial persistence should be disabled for a service (overriding deployment descriptor).
public static InitialPersistence[] values()
for (InitialPersistence c : InitialPersistence.values()) System.out.println(c);
public static InitialPersistence 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 InitialPersistence fromString(String name)
Get an InitialPersistence
enum from its string representation.
name
- the string representation of an InitialPersistence
enum (case insensitive).InitialPersistence
enum.NullPointerException
- if name
is null
.IllegalArgumentException
- if name
does not correspond to any InitialPersistence
value.