Enum Class SyncDeltaType
- All Implemented Interfaces:
Serializable,Comparable<SyncDeltaType>,Constable
The type of change.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe change represents a CREATE in the resource.The change represents either a create or an update in the resource.The change represents a DELETE in the resource.The change represents a UPDATE in the resource. -
Method Summary
Modifier and TypeMethodDescriptionstatic SyncDeltaTypeReturns the enum constant of this class with the specified name.static SyncDeltaType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
CREATE_OR_UPDATE
The change represents either a create or an update in the resource. These are combined into a single value because:- Many resources will not be able to distinguish a create from an update. Those that have an audit log will be able to. However, many implementations will only have the current record and a modification timestamp.
- Regardless of whether or not the resource can distinguish the two cases, the application needs to distinguish.
-
DELETE
The change represents a DELETE in the resource. -
CREATE
The change represents a CREATE in the resource.Experimental type to support better event mechanism where it's possible.
- Since:
- 1.4
- See Also:
-
UPDATE
The change represents a UPDATE in the resource.Experimental type to support better event mechanism where it's possible.
- Since:
- 1.4
- See Also:
-
-
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
-