public enum PersistPolicy extends java.lang.Enum<PersistPolicy>
Enum Constant and Description |
---|
ON_CHANGE
Save persistence storage on each change.
|
ON_EXIT
Saves persistence storage on method
PersistStorage.shutdown() call. |
Modifier and Type | Method and Description |
---|---|
static PersistPolicy |
find(java.lang.String s)
Finds
PersistPolicy enum object from its string value. |
static PersistPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PersistPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistPolicy ON_CHANGE
public static final PersistPolicy ON_EXIT
PersistStorage.shutdown()
call.public static PersistPolicy[] values()
for (PersistPolicy c : PersistPolicy.values()) System.out.println(c);
public static PersistPolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static PersistPolicy find(java.lang.String s) throws FException
PersistPolicy
enum object from its string value.
Used to map PersistPolicy
object to properties value.s
- string valuePersistPolicy
objectFException
- if PersistPolicy
object is not found