Enum Class ModelPersistence

java.lang.Object
java.lang.Enum<ModelPersistence>
io.fluxzero.sdk.modeling.ModelPersistence
All Implemented Interfaces:
Serializable, Comparable<ModelPersistence>, Constable

public enum ModelPersistence extends Enum<ModelPersistence>
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.

  • Enum Constant Details

    • EVENT_SOURCED

      public static final ModelPersistence EVENT_SOURCED
      Persist reconstructing events in the model event stream.
    • DOCUMENT

      public static final ModelPersistence DOCUMENT
      Persist the current model state as a document.
  • Method Details

    • values

      public static ModelPersistence[] 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

      public static ModelPersistence valueOf(String name)
      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 name
      NullPointerException - if the argument is null