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
Modifier and Type | Field and Description |
---|---|
protected Object |
key
INTERNAL:
The value of the key that was updated.
|
ADD, changeType, index, isChangeApplied, isSet, REMOVE
source
Constructor and Description |
---|
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)
|
Modifier and Type | Method and Description |
---|---|
Object |
getKey()
INTERNAL:
Return the change type
|
void |
setKey(Object key)
INTERNAL:
Set the change type
|
getChangeType, getIndex, isChangeApplied, isSet, setIndex
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId, toString
getSource
protected Object key
public MapChangeEvent(Object collectionOwner, String propertyName, Object collectionChanged, Object elementKey, Object elementValue, int changeType, boolean isChangeApplied)
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.