Class MapChangeEvent
java.lang.Object
java.util.EventObject
java.beans.PropertyChangeEvent
org.eclipse.persistence.descriptors.changetracking.CollectionChangeEvent
org.eclipse.persistence.descriptors.changetracking.MapChangeEvent
- All Implemented Interfaces:
Serializable
Purpose: Define a change event for Map types.
Description: For any object that wishes to use either object change tracking or attribute change tracking, its map attributes need to fire MapChangeEvent in the put or remove methods. In the case of a replace (ie key already exists) both a remove for that key and a put using the new value and old key must be fired.
Responsibilities: Create a MapChangeEvent for an object
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Object
INTERNAL: The value of the key that was updated.Fields inherited from class org.eclipse.persistence.descriptors.changetracking.CollectionChangeEvent
ADD, changeType, index, isChangeApplied, isSet, REMOVE
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionMapChangeEvent
(Object collectionOwner, String propertyName, Object collectionChanged, Object elementKey, Object elementValue, int changeType, boolean isChangeApplied) PUBLIC: Create a MapChangeEvent for an object based on the property name, the updated Map, the new Key and the new Value and change type (add or remove) -
Method Summary
Methods inherited from class org.eclipse.persistence.descriptors.changetracking.CollectionChangeEvent
getChangeType, getIndex, isChangeApplied, isSet, setIndex
Methods inherited from class java.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId, toString
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
key
INTERNAL: The value of the key that was updated.
-
-
Constructor Details
-
MapChangeEvent
public MapChangeEvent(Object collectionOwner, String propertyName, Object collectionChanged, Object elementKey, Object elementValue, int changeType, boolean isChangeApplied) PUBLIC: Create a MapChangeEvent for an object based on the property name, the updated Map, the new Key and the new Value and change type (add or remove)
-
-
Method Details
-
getKey
INTERNAL: Return the change type -
setKey
INTERNAL: Set the change type
-