EclipseLink 2.3.2, build 'v20111125-r10461' API Reference

org.eclipse.persistence.annotations
Enum ChangeTrackingType

java.lang.Object
  extended by java.lang.Enum<ChangeTrackingType>
      extended by org.eclipse.persistence.annotations.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:
org.eclipse.persistence.annotations.ChangeTracking.
Author:
Guy Pelletier
Since:
Oracle TopLink 11.1.1.0.0

Enum Constant Summary
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
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

EclipseLink 2.3.2, build 'v20111125-r10461' API Reference