Package org.eclipse.persistence.eis
Class EISCollectionChangeRecord
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.EISCollectionChangeRecord
- All Implemented Interfaces:
Serializable
,ChangeRecord
,CollectionChangeRecord
,EISCollectionChangeRecord
public class EISCollectionChangeRecord
extends org.eclipse.persistence.internal.sessions.CollectionChangeRecord
implements EISCollectionChangeRecord
INTERNAL:
Capture the changes for an unordered collection as
collections of adds and removes.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.sessions.CollectionChangeRecord
addObjectList, addOverFlow, orderedAddObjectIndices, orderedAddObjects, orderedChangeObjectList, orderedRemoveObjectIndices, orderedRemoveObjects, orderHasBeenRepaired, removeObjectList
Fields inherited from class org.eclipse.persistence.internal.sessions.DeferrableChangeRecord
isDeferred, latestCollection, originalCollection
Fields inherited from class org.eclipse.persistence.internal.sessions.ChangeRecord
attribute, mapping, owner
-
Constructor Summary
ConstructorDescriptionEISCollectionChangeRecord
(org.eclipse.persistence.internal.sessions.ObjectChangeSet owner, String attributeName, DatabaseMapping mapping) Construct a ChangeRecord that can be used to represent the changes to an unordered collection. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAddedChangeSet
(Object changeSet) Add an added change set.void
addChangedMapKeyChangeSet
(Object changeSet) Add an changed key change set.void
addRemovedChangeSet
(Object changeSet) Add an removed change set.getAdds()
ADVANCED: Return the added stuff.ADVANCED: Return the stuff whose Map keys have changed.ADVANCED: Return the removed stuff.boolean
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.Methods inherited from class org.eclipse.persistence.internal.sessions.CollectionChangeRecord
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, updateReferences
Methods inherited from class org.eclipse.persistence.internal.sessions.DeferrableChangeRecord
getLatestCollection, getOldValue, getOldValue, getOriginalCollection, isDeferred, recreateOriginalCollection, setIsDeferred, setLatestCollection, setOriginalCollection
Methods inherited from class org.eclipse.persistence.internal.sessions.ChangeRecord
getAttribute, getMapping, getOwner, prepareForSynchronization, setAttribute, setMapping, setOwner, toString, updateChangeRecordWithNewValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.persistence.sessions.changesets.ChangeRecord
getAttribute, getOldValue, getOwner
-
Constructor Details
-
EISCollectionChangeRecord
public EISCollectionChangeRecord(org.eclipse.persistence.internal.sessions.ObjectChangeSet owner, String attributeName, DatabaseMapping mapping) Construct a ChangeRecord that can be used to represent the changes to an unordered collection.
-
-
Method Details
-
addAddedChangeSet
Add an added change set. -
addChangedMapKeyChangeSet
Add an changed key change set. -
addRemovedChangeSet
Add an removed change set. -
getAdds
ADVANCED: Return the added stuff. The contents of this collection is determined by the mapping that populated it- Specified by:
getAdds
in interfaceEISCollectionChangeRecord
-
getChangedMapKeys
ADVANCED: Return the stuff whose Map keys have changed. The contents of this collection is determined by the mapping that populated it- Specified by:
getChangedMapKeys
in interfaceEISCollectionChangeRecord
-
getRemoves
ADVANCED: Return the removed stuff. The contents of this collection is determined by the mapping that populated it- Specified by:
getRemoves
in interfaceEISCollectionChangeRecord
-
hasChanges
public boolean hasChanges()Return whether any changes have been recorded with the change record.- Specified by:
hasChanges
in interfaceCollectionChangeRecord
- Specified by:
hasChanges
in interfaceEISCollectionChangeRecord
- Overrides:
hasChanges
in classorg.eclipse.persistence.internal.sessions.CollectionChangeRecord
- Returns:
- boolean
-
simpleAddChangeSet
Add a change set after it has been applied. -
simpleRemoveChangeSet
Remove a change set after it has been applied.
-