Enum Class ModelPersistence
- All Implemented Interfaces:
Serializable, Comparable<ModelPersistence>, Constable
Defines one durable representation of a
Model.
A model may select both representations. When EVENT_SOURCED is present, the event stream is authoritative;
otherwise DOCUMENT is authoritative. This set is independent from event publication and from internal
documents used to compose model graphs.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPersist the current model state as a document.Persist reconstructing events in the model event stream. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelPersistenceReturns the enum constant of this class with the specified name.static ModelPersistence[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EVENT_SOURCED
Persist reconstructing events in the model event stream. -
DOCUMENT
Persist the current model state as a document.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-