|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
java.beans.PropertyChangeEvent
org.eclipse.persistence.descriptors.changetracking.CollectionChangeEvent
org.eclipse.persistence.descriptors.changetracking.MapChangeEvent
public class MapChangeEvent
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 | |
---|---|
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 |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
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.3 |
|
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) |
Method Summary | |
---|---|
java.lang.Object |
getKey()
INTERNAL: Return the change type |
void |
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 |
Methods inherited from class java.beans.PropertyChangeEvent |
---|
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object key
Constructor Detail |
---|
public MapChangeEvent(java.lang.Object collectionOwner, java.lang.String propertyName, java.lang.Object collectionChanged, java.lang.Object elementKey, java.lang.Object elementValue, int changeType)
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)
Method Detail |
---|
public java.lang.Object getKey()
public void setKey(java.lang.Object key)
|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |