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:
java.io.Serializable
public class MapChangeEvent extends CollectionChangeEvent
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Object
key
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
-
-
Constructor Summary
Constructors Constructor Description MapChangeEvent(java.lang.Object collectionOwner, java.lang.String propertyName, java.lang.Object collectionChanged, java.lang.Object elementKey, java.lang.Object elementValue, int changeType)
Deprecated.as of EclipseLink 2.3MapChangeEvent(java.lang.Object collectionOwner, java.lang.String propertyName, java.lang.Object collectionChanged, java.lang.Object elementKey, java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getKey()
INTERNAL: Return the change typevoid
setKey(java.lang.Object key)
INTERNAL: Set the change type-
Methods inherited from class org.eclipse.persistence.descriptors.changetracking.CollectionChangeEvent
getChangeType, getIndex, isChangeApplied, isSet, setIndex
-
-
-
-
Constructor Detail
-
MapChangeEvent
public MapChangeEvent(java.lang.Object collectionOwner, java.lang.String propertyName, java.lang.Object collectionChanged, java.lang.Object elementKey, java.lang.Object elementValue, int changeType)
Deprecated.as of EclipseLink 2.3PUBLIC: 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)
-
MapChangeEvent
public MapChangeEvent(java.lang.Object collectionOwner, java.lang.String propertyName, java.lang.Object collectionChanged, java.lang.Object elementKey, java.lang.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)
-
-