Module org.eclipse.persistence.core
Class OrderedChangeObject
java.lang.Object
org.eclipse.persistence.internal.sessions.OrderedChangeObject
- All Implemented Interfaces:
Serializable
INTERNAL:
This is used to keep information on a single collection change for attribute change tracking on ordered lists.
They are referenced by CollectionChangeRecords to keep track of all collection changes, the type of change and the index
in the order they occur.
- Since:
- EclipseLink 1.0.1
- See Also:
-
Constructor Summary
ConstructorDescriptionOrderedChangeObject
(int changeType, Integer index, ObjectChangeSet changeSet) OrderedChangeObject
(int changeType, Integer index, ObjectChangeSet changeSet, Object addedOrRemovedObject) -
Method Summary
Modifier and TypeMethodDescriptionINTERNAL: Return the ObjectChangeSet representing the change made to the collectionint
INTERNAL: Return the type of collection change operation (CollectionChangeEvent.REMOVE or CollectionChangeEvent.ADD)getIndex()
INTERNAL: Return the index the change was made to the collection.void
setChangeSet
(ObjectChangeSet changeSet) INTERNAL: Set the ObjectChangeSet representing the change made to the collectionvoid
setChangeType
(int changeType) INTERNAL: Set the type of collection change operation this object represents (CollectionChangeEvent.REMOVE or CollectionChangeEvent.ADD)void
INTERNAL: Set the index the change was made to the collection.
-
Constructor Details
-
OrderedChangeObject
-
OrderedChangeObject
public OrderedChangeObject(int changeType, Integer index, ObjectChangeSet changeSet, Object addedOrRemovedObject)
-
-
Method Details
-
getAddedOrRemovedObject
-
getChangeType
public int getChangeType()INTERNAL: Return the type of collection change operation (CollectionChangeEvent.REMOVE or CollectionChangeEvent.ADD) -
setChangeType
public void setChangeType(int changeType) INTERNAL: Set the type of collection change operation this object represents (CollectionChangeEvent.REMOVE or CollectionChangeEvent.ADD) -
getIndex
INTERNAL: Return the index the change was made to the collection. Null represents a non indexed add/remove operation. -
setIndex
INTERNAL: Set the index the change was made to the collection. Null represents a non indexed add/remove operation. -
getChangeSet
INTERNAL: Return the ObjectChangeSet representing the change made to the collection -
setChangeSet
INTERNAL: Set the ObjectChangeSet representing the change made to the collection
-