Enum ChangeTrackingType

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

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

    Enum Constants
    Enum Constant
    Description
    An ATTRIBUTE change tracking type allows change tracking at the attribute level of an object.
    Will not set any change tracking policy, and the change tracking will be determined at runtime.
    A DEFERRED change tracking policy defers all change detection to the UnitOfWork's change detection process.
    An OBJECT change tracking policy allows an object to calculate for itself whether it has changed.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ATTRIBUTE

      public static final ChangeTrackingType ATTRIBUTE
      An ATTRIBUTE change tracking type 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
      An OBJECT change tracking policy 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
      A DEFERRED change tracking policy defers all change detection to the UnitOfWork's change detection process. Essentially, the calculateChanges() 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 type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ChangeTrackingType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null