public class DirectMapChangeRecord extends ChangeRecord
Modifier and Type | Field and Description |
---|---|
protected HashMap |
addObjectsList |
protected Object |
latestCollection
Used for change tracking when customer sets entire collection
|
protected Object |
originalCollection
Used for change tracking when customer sets entire collection
|
protected HashMap |
removeObjectsList |
attribute, mapping, owner
Constructor and Description |
---|
DirectMapChangeRecord() |
DirectMapChangeRecord(ObjectChangeSet owner) |
Modifier and Type | Method and Description |
---|---|
void |
addAdditionChange(HashMap additions)
ADVANCED:
Adds the items that were added to the collection
|
void |
addAdditionChange(Object key,
Object value)
ADVANCED:
Adds the items that were added to the collection
|
void |
addRemoveChange(HashMap subtractions)
ADVANCED:
Adds the items that were removed from the collection
|
void |
addRemoveChange(Object key,
Object value)
ADVANCED:
Adds the items that were removed from the collection
|
Vector |
getAddAssociations()
INTERNAL:
Use in SDK propject for the mapping of this change record
|
HashMap |
getAddObjects()
INTERNAL:
Returns the added items list
|
Object |
getLatestCollection()
Used for change tracking when cutomer sets entire collection
This is the last collection that was set on the object
|
Object |
getOriginalCollection()
Used for change tracking when cutomer sets entire collection
This is the original collection that was set on the object when it was cloned
|
Vector |
getRemoveAssociations()
INTERNAL:
Use in SDK propject for the mapping of this change record
|
HashMap |
getRemoveObjects()
INTERNAL:
Returns the removed items list
|
boolean |
hasChanges()
returns true if the change set has changes
|
void |
mergeRecord(ChangeRecord mergeFromRecord,
UnitOfWorkChangeSet mergeToChangeSet,
UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL:
This method will be used to merge one record into another
|
void |
setAddAssociations(Vector addAssociations)
INTERNAL:
Use in SDK propject for the mapping of this change record
|
void |
setAddObjects(HashMap addObjects)
INTERNAL:
Sets the added items list
|
void |
setLatestCollection(Object latestCollection)
Used for change tracking when cutomer sets entire collection
This is the last collection that was set on the object
|
void |
setOriginalCollection(Object originalCollection)
Used for change tracking when cutomer sets entire collection
This is the original collection that was set on the object when it was cloned
|
void |
setRemoveAssociations(Vector removeAssociations)
INTERNAL:
Use in SDK propject for the mapping of this change record
|
void |
setRemoveObjects(HashMap removeObjects)
INTERNAL:
Sets the removed items list
|
void |
updateReferences(UnitOfWorkChangeSet mergeToChangeSet,
UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL:
This method will be used to update the objectsChangeSets references
|
getAttribute, getMapping, getOwner, prepareForSynchronization, setAttribute, setMapping, setOwner, toString, updateChangeRecordWithNewValue
protected HashMap addObjectsList
protected HashMap removeObjectsList
protected transient Object originalCollection
protected transient Object latestCollection
public DirectMapChangeRecord()
public DirectMapChangeRecord(ObjectChangeSet owner)
public Vector getAddAssociations()
public boolean hasChanges()
public void mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
mergeRecord
in class ChangeRecord
public void setAddAssociations(Vector addAssociations)
public Object getLatestCollection()
public Object getOriginalCollection()
public Vector getRemoveAssociations()
public void setRemoveAssociations(Vector removeAssociations)
public void addAdditionChange(HashMap additions)
public void addRemoveChange(HashMap subtractions)
public void addAdditionChange(Object key, Object value)
public void addRemoveChange(Object key, Object value)
public void setAddObjects(HashMap addObjects)
public void setLatestCollection(Object latestCollection)
public void setOriginalCollection(Object originalCollection)
public HashMap getAddObjects()
public void setRemoveObjects(HashMap removeObjects)
public HashMap getRemoveObjects()
public void updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
updateReferences
in class ChangeRecord
Copyright © 2021. All rights reserved.