Top Description Fields Constructors Methods
org.eclipse.persistence.internal.sessions

public Class DirectMapChangeRecord

extends DeferrableChangeRecord
Class Inheritance
Imports
java.util.*, org.eclipse.persistence.internal.queries.ContainerPolicy

Change record used by DirectMapMapping. Only needs to track unique keys added/removed.

Field Summary

Modifier and TypeField and Description
protected HashMap<K, V>
protected HashMap<K, V>
Inherited from org.eclipse.persistence.internal.sessions.DeferrableChangeRecord:
isDeferredlatestCollectionoriginalCollection

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
addAdditionChange(HashMap<K, V> additions)

Adds the items that were added to the collection.

public void
addAdditionChange(Object key, Object value)

Adds the items that were added to the collection.

public void
addRemoveChange(HashMap<K, V> subtractions)

Adds the items that were removed from the collection.

public void
addRemoveChange(Object key, Object value)

Adds the items that were removed from the collection.

public void
clearChanges()

Implements abstract org.eclipse.persistence.internal.sessions.DeferrableChangeRecord.clearChanges.

Clears info about added / removed objects set by change tracker.
public HashMap<K, V>
getAddObjects()

Returns the added items list.

public HashMap<K, V>
getRemoveObjects()

Returns the removed items list.

public boolean
hasChanges()

Returns true if the change set has changes.

public void
public void
mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

Implements abstract org.eclipse.persistence.internal.sessions.ChangeRecord.mergeRecord.

This method will be used to merge one record into another.
public void
setAddObjects(HashMap<K, V> addObjects)

Sets the added items list.

public void
setRemoveObjects(HashMap<K, V> removeObjects)

Sets the removed items list.

public void
updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

Implements abstract org.eclipse.persistence.internal.sessions.ChangeRecord.updateReferences.

This method will be used to update the objectsChangeSets references.
Inherited from org.eclipse.persistence.internal.sessions.DeferrableChangeRecord:
getLatestCollectiongetOldValuegetOldValuegetOriginalCollectionisDeferredrecreateOriginalCollectionsetIsDeferredsetLatestCollectionsetOriginalCollection

Field Detail

addObjectsListback to summary
protected HashMap<K, V> addObjectsList
removeObjectsListback to summary
protected HashMap<K, V> removeObjectsList

Constructor Detail

DirectMapChangeRecordback to summary
public DirectMapChangeRecord()
DirectMapChangeRecordback to summary
public DirectMapChangeRecord(ObjectChangeSet owner)

Method Detail

addAdditionChangeback to summary
public void addAdditionChange(HashMap<K, V> additions)

Adds the items that were added to the collection.

addAdditionChangeback to summary
public void addAdditionChange(Object key, Object value)

Adds the items that were added to the collection.

addRemoveChangeback to summary
public void addRemoveChange(HashMap<K, V> subtractions)

Adds the items that were removed from the collection.

addRemoveChangeback to summary
public void addRemoveChange(Object key, Object value)

Adds the items that were removed from the collection.

clearChangesback to summary
public void clearChanges()

Implements abstract org.eclipse.persistence.internal.sessions.DeferrableChangeRecord.clearChanges.

Clears info about added / removed objects set by change tracker.

Annotations
@Override
getAddObjectsback to summary
public HashMap<K, V> getAddObjects()

Returns the added items list.

getRemoveObjectsback to summary
public HashMap<K, V> getRemoveObjects()

Returns the removed items list.

hasChangesback to summary
public boolean hasChanges()

Returns true if the change set has changes.

internalRecreateOriginalCollectionback to summary
public void internalRecreateOriginalCollection(Object currentMap, AbstractSession session)

Implements abstract org.eclipse.persistence.internal.sessions.DeferrableChangeRecord.internalRecreateOriginalCollection.

Recreates the original state of the collection.

Annotations
@Override
mergeRecordback to summary
public void mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

Implements abstract org.eclipse.persistence.internal.sessions.ChangeRecord.mergeRecord.

This method will be used to merge one record into another.

Annotations
@Override
setAddObjectsback to summary
public void setAddObjects(HashMap<K, V> addObjects)

Sets the added items list.

setRemoveObjectsback to summary
public void setRemoveObjects(HashMap<K, V> removeObjects)

Sets the removed items list.

updateReferencesback to summary
public void updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

Implements abstract org.eclipse.persistence.internal.sessions.ChangeRecord.updateReferences.

This method will be used to update the objectsChangeSets references.

Annotations
@Override