- All Implemented Interfaces:
Serializable,Comparable<ChangeTrackingType>,Constable
An enum that is used within the ChangeTracking annotation.
- See Also:
- Author:
- Guy Pelletier
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllows 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.Defers all change detection to the UnitOfWork's change detection process.Allows an object to calculate for itself whether it has changed. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeTrackingTypeReturns the enum constant of this class with the specified name.static ChangeTrackingType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
Will not set any change tracking policy, and the change tracking will be determined at runtime.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-