- All Implemented Interfaces:
Serializable,Comparable<TrackType>,Constable
Object tracking type.
- Author:
- harald
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionlike TRACKED but also knows which attributes are modified.like ATTRACKED but keeps the old persisted values as well.PDO is untracked.PDO knows whether modified or not. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if ATTRACKED or FULLTRACKED.booleanReturns true if TRACKED, ATTRACKED or FULLTRACKED.static TrackTypeReturns the enum constant of this class with the specified name.static TrackType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
PDO is untracked. -
TRACKED
PDO knows whether modified or not. -
ATTRACKED
like TRACKED but also knows which attributes are modified. -
FULLTRACKED
like ATTRACKED but keeps the old persisted values as well.
-
-
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
-
isTracked
public boolean isTracked()Returns true if TRACKED, ATTRACKED or FULLTRACKED.- Returns:
- true if tracked
-
isAttracked
public boolean isAttracked()Returns true if ATTRACKED or FULLTRACKED.- Returns:
- true if tracked
-