- java.lang.Object
-
- java.lang.Enum<Snapshotable.SnapshotMode>
-
- aeonics.util.Snapshotable.SnapshotMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Snapshotable.SnapshotMode>
- Enclosing interface:
- Snapshotable
public static enum Snapshotable.SnapshotMode extends java.lang.Enum<Snapshotable.SnapshotMode>
Defines the behavior of entities during snapshot and restore operations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FULL
The entity will be fully serialized and restored usingTemplate.create(Data)
.NONE
The entity will be excluded from snapshots entirely and will not be restored.UPDATE
The entity will be serialized and updated usingTemplate.update(Data, Entity)
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Snapshotable.SnapshotMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Snapshotable.SnapshotMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FULL
public static final Snapshotable.SnapshotMode FULL
The entity will be fully serialized and restored usingTemplate.create(Data)
. Suitable for entities that need complete reinitialization during restore.
-
NONE
public static final Snapshotable.SnapshotMode NONE
The entity will be excluded from snapshots entirely and will not be restored. Suitable for transient or runtime-only entities.
-
UPDATE
public static final Snapshotable.SnapshotMode UPDATE
The entity will be serialized and updated usingTemplate.update(Data, Entity)
. Suitable for entities that should retain their existing identity but need updated state.
-
-
Method Detail
-
values
public static Snapshotable.SnapshotMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Snapshotable.SnapshotMode c : Snapshotable.SnapshotMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Snapshotable.SnapshotMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-