oracle.toplink.sdk
Class SDKOrderedCollectionChangeRecord

java.lang.Object
  |
  +--oracle.toplink.internal.sessions.ChangeRecord
        |
        +--oracle.toplink.sdk.SDKOrderedCollectionChangeRecord
All Implemented Interfaces:
ChangeRecord, SDKOrderedCollectionChangeRecord, java.io.Serializable

public class SDKOrderedCollectionChangeRecord
extends oracle.toplink.internal.sessions.ChangeRecord
implements SDKOrderedCollectionChangeRecord

Capture the changes for an ordered collection where the entire collection is simply replaced if it has changed.

Since:
TOPLink/Java 3.0
See Also:
SDKAggregateCollectionMapping, SDKObjectCollectionMapping, SDKDirectCollectionMapping, Serialized Form

Constructor Summary
SDKOrderedCollectionChangeRecord(oracle.toplink.internal.sessions.ObjectChangeSet owner, java.lang.String attributeName)
          Construct a ChangeRecord that can be used to represent the changes to an ordered collection.
 
Method Summary
TypeMethod
 int[] getAddIndexes()
          ADVANCED: Return the indexes into the new collection of the elements that were added.
 int[][] getMoveIndexes()
          ADVANCED: Return the indexes of the elements that were simply moved.
 java.util.Vector getNewCollection()
          ADVANCED: Return the entries for all the elements in the new collection.
 int[] getRemoveIndexes()
          ADVANCED: Return the indexes into the old collection of the elements that were removed.
 
Methods inherited from class oracle.toplink.internal.sessions.ChangeRecord
getAttribute, getOwner, setAttribute, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.toplink.changesets.ChangeRecord
getAttribute, getOwner
 

Constructor Detail

SDKOrderedCollectionChangeRecord

public SDKOrderedCollectionChangeRecord(oracle.toplink.internal.sessions.ObjectChangeSet owner,
                                        java.lang.String attributeName)
Construct a ChangeRecord that can be used to represent the changes to an ordered collection.
Method Detail

getAddIndexes

public int[] getAddIndexes()
ADVANCED: Return the indexes into the new collection of the elements that were added.
Specified by:
getAddIndexes in interface SDKOrderedCollectionChangeRecord

getMoveIndexes

public int[][] getMoveIndexes()
ADVANCED: Return the indexes of the elements that were simply moved. Each element in the outer array is another two-element array where the first entry [0] is the index of the object in the old collection and the second entry [1] is the index of the object in the new collection.
Specified by:
getMoveIndexes in interface SDKOrderedCollectionChangeRecord

getNewCollection

public java.util.Vector getNewCollection()
ADVANCED: Return the entries for all the elements in the new collection. The contents of this collection is determined by the mapping that populated it:
Specified by:
getNewCollection in interface SDKOrderedCollectionChangeRecord

getRemoveIndexes

public int[] getRemoveIndexes()
ADVANCED: Return the indexes into the old collection of the elements that were removed.
Specified by:
getRemoveIndexes in interface SDKOrderedCollectionChangeRecord