public class EISOrderedCollectionChangeRecord extends CollectionChangeRecord implements EISOrderedCollectionChangeRecord
| Constructor and Description |
|---|
EISOrderedCollectionChangeRecord(ObjectChangeSet owner,
java.lang.String attributeName,
DatabaseMapping mapping)
Construct a ChangeRecord that can be used to represent the changes to
an ordered collection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAddedChangeSet(java.lang.Object changeSet,
int index)
Add an added change set.
|
void |
addMovedChangeSet(java.lang.Object changeSet,
int oldIndex,
int newIndex)
Add an moved change set.
|
void |
addRemovedChangeSet(java.lang.Object changeSet,
int index)
Add an removed change set.
|
int[] |
getAddIndexes()
ADVANCED:
Return the indexes into the new collection of
the elements that were added.
|
java.util.List |
getAdds()
ADVANCED:
Return the entries for all the elements added to the new collection.
|
int[][] |
getMoveIndexPairs()
ADVANCED:
Return the indexes of the elements that were simply moved
within the collection.
|
java.util.List |
getMoves()
ADVANCED:
Return the entries for all the elements that were simply shuffled
within the collection.
|
java.util.List |
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.
|
java.util.List |
getRemoves()
ADVANCED:
Return the entries for all the elements removed from the old collection.
|
boolean |
hasChanges()
Return whether any changes have been recorded with the change record.
|
void |
simpleAddChangeSet(java.lang.Object changeSet)
Add a change set after it has been applied.
|
void |
simpleRemoveChangeSet(java.lang.Object changeSet)
Remove a change set after it has been applied.
|
addAdditionChange, addOrderedAdditionChange, addOrderedRemoveChange, addRemoveChange, clearChanges, getAddObjectList, getAddOverFlow, getCurrentIndexesOfOriginalObjects, getOrderedAddObjectIndex, getOrderedAddObjectIndices, getOrderedAddObjects, getOrderedChangeObjectList, getOrderedRemoveObject, getOrderedRemoveObjectIndices, getOrderedRemoveObjects, getRemoveObjectList, internalRecreateOriginalCollection, mergeRecord, orderHasBeenRepaired, setAddObjectList, setOrderedAddObjectIndices, setOrderedAddObjects, setOrderedChangeObjectList, setOrderedRemoveObjects, setOrderHasBeenRepaired, setRemoveObjectList, updateReferencesgetLatestCollection, getOldValue, getOldValue, getOriginalCollection, isDeferred, recreateOriginalCollection, setIsDeferred, setLatestCollection, setOriginalCollectiongetAttribute, getMapping, getOwner, prepareForSynchronization, setAttribute, setMapping, setOwner, toString, updateChangeRecordWithNewValueequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttribute, getOldValue, getOwnerpublic EISOrderedCollectionChangeRecord(ObjectChangeSet owner, java.lang.String attributeName, DatabaseMapping mapping)
public void addAddedChangeSet(java.lang.Object changeSet,
int index)
public void addMovedChangeSet(java.lang.Object changeSet,
int oldIndex,
int newIndex)
public void addRemovedChangeSet(java.lang.Object changeSet,
int index)
public int[] getAddIndexes()
getAddIndexes in interface EISOrderedCollectionChangeRecordpublic java.util.List getAdds()
getAdds in interface EISOrderedCollectionChangeRecordpublic int[][] getMoveIndexPairs()
getMoveIndexPairs in interface EISOrderedCollectionChangeRecordpublic java.util.List getMoves()
getMoves in interface EISOrderedCollectionChangeRecordpublic java.util.List getNewCollection()
getNewCollection in interface EISOrderedCollectionChangeRecordpublic int[] getRemoveIndexes()
getRemoveIndexes in interface EISOrderedCollectionChangeRecordpublic java.util.List getRemoves()
getRemoves in interface EISOrderedCollectionChangeRecordpublic boolean hasChanges()
hasChanges in interface CollectionChangeRecordhasChanges in interface EISOrderedCollectionChangeRecordhasChanges in class CollectionChangeRecordpublic void simpleAddChangeSet(java.lang.Object changeSet)
public void simpleRemoveChangeSet(java.lang.Object changeSet)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference