Top Description Fields Constructors Methods
org.eclipse.persistence.descriptors.changetracking

public Class MapChangeEvent

extends CollectionChangeEvent
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
protected Object
key

INTERNAL: The value of the key that was updated.

Inherited from org.eclipse.persistence.descriptors.changetracking.CollectionChangeEvent:
ADDchangeTypeindexisChangeAppliedisSetREMOVE

Constructor Summary

AccessConstructor and Description
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 Summary

Modifier and TypeMethod and Description
public Object
getKey()

INTERNAL: Return the change type

public void
setKey(Object key)

INTERNAL: Set the change type

Inherited from org.eclipse.persistence.descriptors.changetracking.CollectionChangeEvent:
getChangeTypegetIndexisChangeAppliedisSetsetIndex

Field Detail

keyback to summary
protected Object key

INTERNAL: The value of the key that was updated.

Constructor Detail

MapChangeEventback to summary
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 Detail

getKeyback to summary
public Object getKey()

INTERNAL: Return the change type

setKeyback to summary
public void setKey(Object key)

INTERNAL: Set the change type