Package org.eclipse.persistence.eis
Class EISOrderedCollectionChangeRecord
java.lang.Object
org.eclipse.persistence.internal.sessions.ChangeRecord
org.eclipse.persistence.internal.sessions.DeferrableChangeRecord
org.eclipse.persistence.internal.sessions.CollectionChangeRecord
org.eclipse.persistence.eis.EISOrderedCollectionChangeRecord
- All Implemented Interfaces:
- Serializable,- ChangeRecord,- CollectionChangeRecord,- EISOrderedCollectionChangeRecord
public class EISOrderedCollectionChangeRecord
extends org.eclipse.persistence.internal.sessions.CollectionChangeRecord
implements EISOrderedCollectionChangeRecord
INTERNAL:
 Capture the changes for an ordered collection where
 the entire collection is simply replaced if it has changed.
- See Also:
- 
Field SummaryFields inherited from class org.eclipse.persistence.internal.sessions.CollectionChangeRecordaddObjectList, addOverFlow, orderedAddObjectIndices, orderedAddObjects, orderedChangeObjectList, orderedRemoveObjectIndices, orderedRemoveObjects, orderHasBeenRepaired, removeObjectListFields inherited from class org.eclipse.persistence.internal.sessions.DeferrableChangeRecordisDeferred, latestCollection, originalCollectionFields inherited from class org.eclipse.persistence.internal.sessions.ChangeRecordattribute, mapping, owner
- 
Constructor SummaryConstructorsConstructorDescriptionEISOrderedCollectionChangeRecord(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.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAddedChangeSet(Object changeSet, int index) Add an added change set.voidaddMovedChangeSet(Object changeSet, int oldIndex, int newIndex) Add an moved change set.voidaddRemovedChangeSet(Object changeSet, int index) Add an removed change set.int[]ADVANCED: Return the indexes into the new collection of the elements that were added.getAdds()ADVANCED: Return the entries for all the elements added to the new collection.int[][]ADVANCED: Return the indexes of the elements that were simply moved within the collection.getMoves()ADVANCED: Return the entries for all the elements that were simply shuffled within the collection.ADVANCED: Return the entries for all the elements in the new collection.int[]ADVANCED: Return the indexes into the old collection of the elements that were removed.ADVANCED: Return the entries for all the elements removed from the old collection.booleanReturn whether any changes have been recorded with the change record.voidsimpleAddChangeSet(Object changeSet) Add a change set after it has been applied.voidsimpleRemoveChangeSet(Object changeSet) Remove a change set after it has been applied.Methods inherited from class org.eclipse.persistence.internal.sessions.CollectionChangeRecordaddAdditionChange, 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, updateReferencesMethods inherited from class org.eclipse.persistence.internal.sessions.DeferrableChangeRecordgetLatestCollection, getOldValue, getOldValue, getOriginalCollection, isDeferred, recreateOriginalCollection, setIsDeferred, setLatestCollection, setOriginalCollectionMethods inherited from class org.eclipse.persistence.internal.sessions.ChangeRecordgetAttribute, getMapping, getOwner, prepareForSynchronization, setAttribute, setMapping, setOwner, toString, updateChangeRecordWithNewValueMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.persistence.sessions.changesets.ChangeRecordgetAttribute, getOldValue, getOwner
- 
Constructor Details- 
EISOrderedCollectionChangeRecordpublic 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.
 
- 
- 
Method Details- 
addAddedChangeSetAdd an added change set.
- 
addMovedChangeSetAdd an moved change set.
- 
addRemovedChangeSetAdd an removed change set.
- 
getAddIndexespublic int[] getAddIndexes()ADVANCED: Return the indexes into the new collection of the elements that were added.- Specified by:
- getAddIndexesin interface- EISOrderedCollectionChangeRecord
 
- 
getAddsADVANCED: 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- Specified by:
- getAddsin interface- EISOrderedCollectionChangeRecord
 
- 
getMoveIndexPairspublic int[][] getMoveIndexPairs()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.- Specified by:
- getMoveIndexPairsin interface- EISOrderedCollectionChangeRecord
 
- 
getMovesADVANCED: 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- Specified by:
- getMovesin interface- EISOrderedCollectionChangeRecord
 
- 
getNewCollectionADVANCED: 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:
- getNewCollectionin interface- EISOrderedCollectionChangeRecord
 
- 
getRemoveIndexespublic int[] getRemoveIndexes()ADVANCED: Return the indexes into the old collection of the elements that were removed.- Specified by:
- getRemoveIndexesin interface- EISOrderedCollectionChangeRecord
 
- 
getRemovesADVANCED: 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- Specified by:
- getRemovesin interface- EISOrderedCollectionChangeRecord
 
- 
hasChangespublic boolean hasChanges()Return whether any changes have been recorded with the change record.- Specified by:
- hasChangesin interface- CollectionChangeRecord
- Specified by:
- hasChangesin interface- EISOrderedCollectionChangeRecord
- Overrides:
- hasChangesin class- org.eclipse.persistence.internal.sessions.CollectionChangeRecord
- Returns:
- boolean
 
- 
simpleAddChangeSetAdd a change set after it has been applied.
- 
simpleRemoveChangeSetRemove a change set after it has been applied.
 
-