Module eclipselink

Enum Class ChangeTrackingType

java.lang.Object
java.lang.Enum<ChangeTrackingType>
org.eclipse.persistence.annotations.ChangeTrackingType
All Implemented Interfaces:
Serializable, Comparable<ChangeTrackingType>, Constable

public enum ChangeTrackingType extends Enum<ChangeTrackingType>
An enum that is used within the ChangeTracking annotation.
See Also:
Author:
Guy Pelletier
  • Enum Constant Details

    • ATTRIBUTE

      public static final ChangeTrackingType ATTRIBUTE
      Allows change tracking at the attribute level of an object. Objects with changed attributes will be processed in the commit process to include any changes in the results of the commit.

      Unchanged objects will be ignored.

    • OBJECT

      public static final ChangeTrackingType OBJECT
      Allows an object to calculate for itself whether it has changed. Changed objects will be processed in the commit process to include any changes in the results of the commit.

      Unchanged objects will be ignored.

    • DEFERRED

      public static final ChangeTrackingType DEFERRED
      Defers all change detection to the UnitOfWork's change detection process. Essentially, the UnitOfWorkImpl.calculateChanges(java.util.Map, org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet, boolean, boolean) method will run for all objects in a UnitOfWork.

      This is the default ObjectChangePolicy

    • AUTO

      public static final ChangeTrackingType AUTO
      Will not set any change tracking policy, and the change tracking will be determined at runtime.
  • Method Details

    • values

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