Top Description Methods
org.eclipse.persistence.sessions.changesets

public Interface EISOrderedCollectionChangeRecord

extends ChangeRecord
Known Direct Implementers
org.eclipse.persistence.eis.EISOrderedCollectionChangeRecord
Imports
java.util.List

Purpose: To provide API into the EISCollectionChangeSet.

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

Method Summary

Modifier and TypeMethod and Description
public int[]
getAddIndexes()

ADVANCED: Return the indexes into the new collection of the elements that were added.

public List<E>
getAdds()

ADVANCED: Return the entries for all the elements added to the new collection.

public int[][]
getMoveIndexPairs()

ADVANCED: ADVANCED: Return the indexes of the elements that were simply moved within the collection.

public List<E>
getMoves()

ADVANCED: Return the entries for all the elements that were simply shuffled within the collection.

public List<E>
getNewCollection()

ADVANCED: Return the entries for all the elements in the new collection.

public int[]
getRemoveIndexes()

ADVANCED: Return the indexes into the old collection of the elements that were removed.

public List<E>
getRemoves()

ADVANCED: Return the entries for all the elements removed from the old collection.

public boolean
hasChanges()

ADVANCED: Return whether any changes have been recorded with the change record.

Inherited from org.eclipse.persistence.sessions.changesets.ChangeRecord:
getAttributegetOldValuegetOwner

Method Detail

getAddIndexesback to summary
public int[] getAddIndexes()

ADVANCED: Return the indexes into the new collection of the elements that were added.

getAddsback to summary
public List<E> getAdds()

ADVANCED: Return the entries for all the elements added to the new collection. The contents of this collection is determined by the mapping that populated it

getMoveIndexPairsback to summary
public int[][] getMoveIndexPairs()

ADVANCED: ADVANCED: Return the indexes of the elements that were simply moved within the collection. 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. These two indexes can be equal.

getMovesback to summary
public List<E> getMoves()

ADVANCED: Return the entries for all the elements that were simply shuffled within the collection. The contents of this collection is determined by the mapping that populated it

getNewCollectionback to summary
public List<E> 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

getRemoveIndexesback to summary
public int[] getRemoveIndexes()

ADVANCED: Return the indexes into the old collection of the elements that were removed.

getRemovesback to summary
public List<E> getRemoves()

ADVANCED: Return the entries for all the elements removed from the old collection. The contents of this collection is determined by the mapping that populated it

hasChangesback to summary
public boolean hasChanges()

ADVANCED: Return whether any changes have been recorded with the change record.