Top Description Fields Constructors Methods
org.eclipse.persistence.eis

public Class EISCollectionChangeRecord

extends CollectionChangeRecord
implements EISCollectionChangeRecord
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.sessions.changesets.EISCollectionChangeRecord, org.eclipse.persistence.sessions.changesets.ChangeRecord
Imports
java.util.ArrayList, .List, org.eclipse.persistence.internal.sessions.CollectionChangeRecord, .ObjectChangeSet, org.eclipse.persistence.mappings.DatabaseMapping

INTERNAL: Capture the changes for an unordered collection as collections of adds and removes.

Field Summary

Modifier and TypeField and Description
private List<E>
adds

The added stuff.

private List<E>
changedMapKeys

The stuff whose Map keys have changed.

private List<E>
removes

The removed stuff.

Inherited from org.eclipse.persistence.internal.sessions.CollectionChangeRecord:
addObjectListaddOverFloworderedAddObjectIndicesorderedAddObjectsorderedChangeObjectListorderedRemoveObjectIndicesorderedRemoveObjectsorderHasBeenRepairedremoveObjectList

Constructor Summary

AccessConstructor and Description
public
EISCollectionChangeRecord(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 TypeMethod and Description
public void
addAddedChangeSet(Object changeSet)

Add an added change set.

public void
addChangedMapKeyChangeSet(Object changeSet)

Add an changed key change set.

public void
addRemovedChangeSet(Object changeSet)

Add an removed change set.

public List<E>
public List<E>
getChangedMapKeys()

Implements org.eclipse.persistence.sessions.changesets.EISCollectionChangeRecord.getChangedMapKeys.

ADVANCED: Return the stuff whose Map keys have changed.
public List<E>
private boolean
hasAdds()

Return whether any adds have been recorded with the change record.

private boolean
hasChangedMapKeys()

Return whether any changed map keys have been recorded with the change record.

public boolean
private boolean
hasRemoves()

Return whether any removes have been recorded with the change record.

private boolean
removeAddedChangeSet(Object changeSet)

Remove a previously added change set.

private boolean
removeRemovedChangeSet(Object changeSet)

Remove a previously added change set.

public void
simpleAddChangeSet(Object changeSet)

Add a change set after it has been applied.

public void
simpleRemoveChangeSet(Object changeSet)

Remove a change set after it has been applied.

Inherited from org.eclipse.persistence.internal.sessions.CollectionChangeRecord:
addAdditionChangeaddOrderedAdditionChangeaddOrderedRemoveChangeaddRemoveChangeclearChangesgetAddObjectListgetAddOverFlowgetCurrentIndexesOfOriginalObjectsgetOrderedAddObjectIndexgetOrderedAddObjectIndicesgetOrderedAddObjectsgetOrderedChangeObjectListgetOrderedRemoveObjectgetOrderedRemoveObjectIndicesgetOrderedRemoveObjectsgetRemoveObjectListinternalRecreateOriginalCollectionmergeRecordorderHasBeenRepairedsetAddObjectListsetOrderedAddObjectIndicessetOrderedAddObjectssetOrderedChangeObjectListsetOrderedRemoveObjectssetOrderHasBeenRepairedsetRemoveObjectListupdateReferences

Field Detail

addsback to summary
private List<E> adds

The added stuff.

changedMapKeysback to summary
private List<E> changedMapKeys

The stuff whose Map keys have changed.

removesback to summary
private List<E> removes

The removed stuff.

Constructor Detail

EISCollectionChangeRecordback to summary
public EISCollectionChangeRecord(ObjectChangeSet owner, String attributeName, DatabaseMapping mapping)

Construct a ChangeRecord that can be used to represent the changes to an unordered collection.

Method Detail

addAddedChangeSetback to summary
public void addAddedChangeSet(Object changeSet)

Add an added change set.

addChangedMapKeyChangeSetback to summary
public void addChangedMapKeyChangeSet(Object changeSet)

Add an changed key change set.

addRemovedChangeSetback to summary
public void addRemovedChangeSet(Object changeSet)

Add an removed change set.

getAddsback to summary
public List<E> getAdds()

Implements org.eclipse.persistence.sessions.changesets.EISCollectionChangeRecord.getAdds.

ADVANCED: Return the added stuff. The contents of this collection is determined by the mapping that populated it

Annotations
@Override
getChangedMapKeysback to summary
public List<E> getChangedMapKeys()

Implements org.eclipse.persistence.sessions.changesets.EISCollectionChangeRecord.getChangedMapKeys.

ADVANCED: Return the stuff whose Map keys have changed. The contents of this collection is determined by the mapping that populated it

Annotations
@Override
getRemovesback to summary
public List<E> getRemoves()

Implements org.eclipse.persistence.sessions.changesets.EISCollectionChangeRecord.getRemoves.

ADVANCED: Return the removed stuff. The contents of this collection is determined by the mapping that populated it

Annotations
@Override
hasAddsback to summary
private boolean hasAdds()

Return whether any adds have been recorded with the change record. Directly reference the instance variable, so as to not trigger the lazy instantiation.

hasChangedMapKeysback to summary
private boolean hasChangedMapKeys()

Return whether any changed map keys have been recorded with the change record. Directly reference the instance variable, so as to not trigger the lazy instantiation.

hasChangesback to summary
public boolean hasChanges()

Overrides org.eclipse.persistence.internal.sessions.CollectionChangeRecord.hasChanges.

Implements org.eclipse.persistence.sessions.changesets.EISCollectionChangeRecord.hasChanges, org.eclipse.persistence.sessions.changesets.CollectionChangeRecord.hasChanges.

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

Returns:boolean

Doc from org.eclipse.persistence.sessions.changesets.CollectionChangeRecord.hasChanges.

boolean

Annotations
@Override
hasRemovesback to summary
private boolean hasRemoves()

Return whether any removes have been recorded with the change record. Directly reference the instance variable, so as to not trigger the lazy instantiation.

removeAddedChangeSetback to summary
private boolean removeAddedChangeSet(Object changeSet)

Remove a previously added change set. Return true if it was actually removed from the collection.

removeRemovedChangeSetback to summary
private boolean removeRemovedChangeSet(Object changeSet)

Remove a previously added change set. Return true if it was actually removed from the collection.

simpleAddChangeSetback to summary
public void simpleAddChangeSet(Object changeSet)

Add a change set after it has been applied.

simpleRemoveChangeSetback to summary
public void simpleRemoveChangeSet(Object changeSet)

Remove a change set after it has been applied.