|
|||||||||
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
public class CollectionChangeEvent
Purpose: Define a change event for collection types.
Description: For any object that wishes to use either object change tracking or attribute change tracking, its collection attributes need to fire CollectionChangeEvent in the add or remove methods.
Responsibilities: Create a CollectionChangeEvent for an object
Field Summary | |
---|---|
static int |
ADD
|
static int |
REMOVE
|
Constructor Summary | |
---|---|
CollectionChangeEvent(Object collectionOwner,
String propertyName,
Object collectionChanged,
Object elementChanged,
int changeType)
PUBLIC: Create a CollectionChangeEvent for an object based on the property name, old value, new value and change type (add or remove) |
|
CollectionChangeEvent(Object collectionOwner,
String propertyName,
Object collectionChanged,
Object elementChanged,
int changeType,
Integer index)
PUBLIC: Create a CollectionChangeEvent for an object based on the property name, old value, new value, change type (add or remove) and the index where the object is/was in the collection (list) |
|
CollectionChangeEvent(Object collectionOwner,
String propertyName,
Object collectionChanged,
Object elementChanged,
int changeType,
Integer index,
boolean isSet)
PUBLIC: Create a CollectionChangeEvent for an object based on the property name, old value, new value, change type (add or remove) and the index where the object is/was in the collection (list), flag indicating whether the change (addition or removal) is part of a single set operation on a list. |
Method Summary | |
---|---|
int |
getChangeType()
INTERNAL: Return the change type |
Integer |
getIndex()
INTERNAL: Return the index of the change in the collection |
boolean |
isSet()
INTERNAL: Return whether the event was raised by set operation on the list. |
void |
setIndex(Integer index)
INTERNAL: Set the index of the change in the collection |
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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int ADD
public static int REMOVE
Constructor Detail |
---|
public CollectionChangeEvent(Object collectionOwner, String propertyName, Object collectionChanged, Object elementChanged, int changeType)
public CollectionChangeEvent(Object collectionOwner, String propertyName, Object collectionChanged, Object elementChanged, int changeType, Integer index)
public CollectionChangeEvent(Object collectionOwner, String propertyName, Object collectionChanged, Object elementChanged, int changeType, Integer index, boolean isSet)
Method Detail |
---|
public int getChangeType()
public boolean isSet()
public Integer getIndex()
public void setIndex(Integer index)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |