Enum ChangeTrackingType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ChangeTrackingType>

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

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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ChangeTrackingType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ChangeTrackingType[] values()
      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 Detail

      • 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 Detail

      • values

        public static ChangeTrackingType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ChangeTrackingType c : ChangeTrackingType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ChangeTrackingType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null