Enum Class ChangeTrackingMode

java.lang.Object
java.lang.Enum<ChangeTrackingMode>
cz.cvut.kbss.jopa.utils.ChangeTrackingMode
All Implemented Interfaces:
Serializable, Comparable<ChangeTrackingMode>, java.lang.constant.Constable

public enum ChangeTrackingMode extends Enum<ChangeTrackingMode>
Specifies how changes to managed objects are tracked in transactions.
  • Enum Constant Details

    • IMMEDIATE

      public static final ChangeTrackingMode IMMEDIATE
      Tracks changes immediately as they are made and propagates them to a transaction snapshot of the repository managed by the underlying OntoDriver.
    • ON_COMMIT

      public static final ChangeTrackingMode ON_COMMIT
      Calculates changes on commit, propagating them immediately to the underlying repository.
  • Method Details

    • values

      public static ChangeTrackingMode[] 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 ChangeTrackingMode 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
    • resolve

      public static ChangeTrackingMode resolve(Configuration configuration)
      Resolves change tracking mode from the specified configuration.
      Parameters:
      configuration - Configuration to resolve change tracking mode from
      Returns:
      Resolved ChangeTrackingMode