Class OrderedChangeObject

  • All Implemented Interfaces:
    Serializable

    public class OrderedChangeObject
    extends Object
    implements 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
    Author:
    Chris Delahunt
    See Also:
    Serialized Form
    • Constructor Detail

      • OrderedChangeObject

        public OrderedChangeObject​(int changeType,
                                   Integer index,
                                   ObjectChangeSet changeSet)
      • OrderedChangeObject

        public OrderedChangeObject​(int changeType,
                                   Integer index,
                                   ObjectChangeSet changeSet,
                                   Object addedOrRemovedObject)
    • Method Detail

      • getAddedOrRemovedObject

        public Object 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

        public Integer getIndex()
        INTERNAL: Return the index the change was made to the collection. Null represents a non indexed add/remove operation.
      • setIndex

        public void setIndex​(Integer index)
        INTERNAL: Set the index the change was made to the collection. Null represents a non indexed add/remove operation.
      • getChangeSet

        public ObjectChangeSet getChangeSet()
        INTERNAL: Return the ObjectChangeSet representing the change made to the collection
      • setChangeSet

        public void setChangeSet​(ObjectChangeSet changeSet)
        INTERNAL: Set the ObjectChangeSet representing the change made to the collection