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.- Since:
- Oracle TopLink 11.1.1.0.0
- Author:
- Guy Pelletier
- See Also:
ChangeTracking
-
-
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(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.
-
-
-
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(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 nameNullPointerException
- if the argument is null
-
-