oracle.toplink.changesets
Interface SDKOrderedCollectionChangeRecord

All Superinterfaces:
ChangeRecord
All Known Implementing Classes:
SDKOrderedCollectionChangeRecord

public interface SDKOrderedCollectionChangeRecord
extends ChangeRecord

Purpose: To provide API into the SDKCollectionChangeSet.

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

See Also:
SDKAggregateCollectionMapping, SDKObjectCollectionMapping, SDKDirectCollectionMapping

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.
 boolean hasChanges()
          ADVANCED: Return whether any changes have been recorded with the change record.
 
Methods inherited from interface oracle.toplink.changesets.ChangeRecord
getAttribute, getOwner
 

Method Detail

getAddIndexes

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

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.

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:

getRemoveIndexes

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

hasChanges

public boolean hasChanges()
ADVANCED: Return whether any changes have been recorded with the change record.