Top Description Fields Constructors Methods
org.eclipse.persistence.internal.sessions

public Class OrderedChangeObject

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.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.
Author
Chris Delahunt
Since
EclipseLink 1.0.1

Field Summary

Modifier and TypeField and Description
pack-priv transient Object
pack-priv ObjectChangeSet
pack-priv int
pack-priv Integer

Constructor Summary

AccessConstructor and Description
public
OrderedChangeObject(int changeType, Integer index, ObjectChangeSet changeSet)

public
OrderedChangeObject(int changeType, Integer index, ObjectChangeSet changeSet, Object addedOrRemovedObject)

Method Summary

Modifier and TypeMethod and Description
public Object
public ObjectChangeSet
getChangeSet()

INTERNAL: Return the ObjectChangeSet representing the change made to the collection

public int
getChangeType()

INTERNAL: Return the type of collection change operation (CollectionChangeEvent.REMOVE or CollectionChangeEvent.ADD)

public Integer
getIndex()

INTERNAL: Return the index the change was made to the collection.

public void
setChangeSet(ObjectChangeSet changeSet)

INTERNAL: Set the ObjectChangeSet representing the change made to the collection

public void
setChangeType(int changeType)

INTERNAL: Set the type of collection change operation this object represents (CollectionChangeEvent.REMOVE or CollectionChangeEvent.ADD)

public void
setIndex(Integer index)

INTERNAL: Set the index the change was made to the collection.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

addedOrRemovedObjectback to summary
pack-priv transient Object addedOrRemovedObject
changeSetback to summary
pack-priv ObjectChangeSet changeSet
changeTypeback to summary
pack-priv int changeType
indexback to summary
pack-priv Integer index

Constructor Detail

OrderedChangeObjectback to summary
public OrderedChangeObject(int changeType, Integer index, ObjectChangeSet changeSet)
OrderedChangeObjectback to summary
public OrderedChangeObject(int changeType, Integer index, ObjectChangeSet changeSet, Object addedOrRemovedObject)

Method Detail

getAddedOrRemovedObjectback to summary
public Object getAddedOrRemovedObject()
getChangeSetback to summary
public ObjectChangeSet getChangeSet()

INTERNAL: Return the ObjectChangeSet representing the change made to the collection

getChangeTypeback to summary
public int getChangeType()

INTERNAL: Return the type of collection change operation (CollectionChangeEvent.REMOVE or CollectionChangeEvent.ADD)

getIndexback to summary
public Integer getIndex()

INTERNAL: Return the index the change was made to the collection. Null represents a non indexed add/remove operation.

setChangeSetback to summary
public void setChangeSet(ObjectChangeSet changeSet)

INTERNAL: Set the ObjectChangeSet representing the change made to the collection

setChangeTypeback to summary
public void setChangeType(int changeType)

INTERNAL: Set the type of collection change operation this object represents (CollectionChangeEvent.REMOVE or CollectionChangeEvent.ADD)

setIndexback to summary
public void setIndex(Integer index)

INTERNAL: Set the index the change was made to the collection. Null represents a non indexed add/remove operation.