Package st.orm

Enum Class DirtyCheck

All Implemented Interfaces:
Serializable, Comparable<DirtyCheck>, Constable

public enum DirtyCheck extends Enum<DirtyCheck>
Defines how dirty checking is performed for an entity.

This enum controls how field changes are detected when dynamic updates are enabled.

  • DEFAULT – Use the configured dirty check strategy as defined by the storm.update.dirty_check property (see StormConfig).
  • INSTANCE – Fields are considered dirty as soon as their reference changes. This mode is fast and avoids potentially expensive value comparisons.
  • VALUE – Fields are compared using semantic equality. A field is only considered dirty when its value has changed.
Since:
1.7
  • Enum Constant Details

    • DEFAULT

      public static final DirtyCheck DEFAULT
      Use the globally configured dirty check strategy.
    • INSTANCE

      public static final DirtyCheck INSTANCE
      Use identity-based dirty checking.

      A field is considered dirty when its reference changes.

    • VALUE

      public static final DirtyCheck VALUE
      Use value-based dirty checking.

      A field is considered dirty only when its value has changed.

  • Method Details

    • values

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