Class OrderedChangeObject

  • All Implemented Interfaces:
    java.io.Serializable

    public class OrderedChangeObject
    extends java.lang.Object
    implements 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.
    Since:
    EclipseLink 1.0.1
    Author:
    Chris Delahunt
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getAddedOrRemovedObject()  
      ObjectChangeSet getChangeSet()
      INTERNAL: Return the ObjectChangeSet representing the change made to the collection
      int getChangeType()
      INTERNAL: Return the type of collection change operation (CollectionChangeEvent.REMOVE or CollectionChangeEvent.ADD)
      java.lang.Integer 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 collection
      void setChangeType​(int changeType)
      INTERNAL: Set the type of collection change operation this object represents (CollectionChangeEvent.REMOVE or CollectionChangeEvent.ADD)
      void setIndex​(java.lang.Integer index)
      INTERNAL: Set the index the change was made to the collection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OrderedChangeObject

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

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

      • getAddedOrRemovedObject

        public java.lang.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 java.lang.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​(java.lang.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