org.eclipse.persistence.eis
public class EISOrderedCollectionChangeRecord extends org.eclipse.persistence.internal.sessions.CollectionChangeRecord implements EISOrderedCollectionChangeRecord
Constructor and Description |
---|
EISOrderedCollectionChangeRecord(org.eclipse.persistence.internal.sessions.ObjectChangeSet owner,
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(Object changeSet,
int index)
Add an added change set.
|
void |
addMovedChangeSet(Object changeSet,
int oldIndex,
int newIndex)
Add an moved change set.
|
void |
addRemovedChangeSet(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.
|
Vector |
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.
|
Vector |
getMoves()
ADVANCED:
Return the entries for all the elements that were simply shuffled
within the collection.
|
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.
|
Vector |
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(Object changeSet)
Add a change set after it has been applied.
|
void |
simpleRemoveChangeSet(Object changeSet)
Remove a change set after it has been applied.
|
addAdditionChange, addOrderedAdditionChange, addOrderedRemoveChange, addRemoveChange, getAddObjectList, getAddOverFlow, getCurrentIndexesOfOriginalObjects, getOrderedAddObjectIndex, getOrderedAddObjectIndices, getOrderedAddObjects, getOrderedChangeObjectList, getOrderedRemoveObject, getOrderedRemoveObjectIndices, getOrderedRemoveObjects, getRemoveObjectList, mergeRecord, orderHasBeenRepaired, recreateOriginalCollection, setAddObjectList, setOrderedAddObjectIndices, setOrderedAddObjects, setOrderedChangeObjectList, setOrderedRemoveObjects, setOrderHasBeenRepaired, setRemoveObjectList, updateReferences
getLatestCollection, getOriginalCollection, isDeferred, setIsDeferred, setLatestCollection, setOriginalCollection
getAttribute, getMapping, getOwner, prepareForSynchronization, setAttribute, setMapping, setOwner, toString, updateChangeRecordWithNewValue
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttribute, getOwner
public EISOrderedCollectionChangeRecord(org.eclipse.persistence.internal.sessions.ObjectChangeSet owner, String attributeName, DatabaseMapping mapping)
public void addAddedChangeSet(Object changeSet, int index)
public void addMovedChangeSet(Object changeSet, int oldIndex, int newIndex)
public void addRemovedChangeSet(Object changeSet, int index)
public int[] getAddIndexes()
getAddIndexes
in interface EISOrderedCollectionChangeRecord
public Vector getAdds()
getAdds
in interface EISOrderedCollectionChangeRecord
public int[][] getMoveIndexPairs()
getMoveIndexPairs
in interface EISOrderedCollectionChangeRecord
public Vector getMoves()
getMoves
in interface EISOrderedCollectionChangeRecord
public Vector getNewCollection()
getNewCollection
in interface EISOrderedCollectionChangeRecord
public int[] getRemoveIndexes()
getRemoveIndexes
in interface EISOrderedCollectionChangeRecord
public Vector getRemoves()
getRemoves
in interface EISOrderedCollectionChangeRecord
public boolean hasChanges()
hasChanges
in interface CollectionChangeRecord
hasChanges
in interface EISOrderedCollectionChangeRecord
hasChanges
in class org.eclipse.persistence.internal.sessions.CollectionChangeRecord
public void simpleAddChangeSet(Object changeSet)
public void simpleRemoveChangeSet(Object changeSet)