public class OrderedCollectionChangeRecord extends ChangeRecord implements OrderedCollectionChangeRecord
Purpose: This class holds the record of the changes made to a collection attribute of an object.
Description: Collections must be compared to each other and added and removed objects must be recorded seperately. NOTE: This class and its sub class are currently not used within TopLink and should be removed.
Modifier and Type | Field and Description |
---|---|
protected Vector |
addIndexes |
protected Hashtable |
addObjectList |
protected int |
startIndexOfRemove |
attribute, mapping, owner
Constructor and Description |
---|
OrderedCollectionChangeRecord(ObjectChangeSet owner)
This constructor returns a changeRecord representing the DirectCollection mapping
|
Modifier and Type | Method and Description |
---|---|
void |
addAdditionChange(Hashtable additions,
Vector indexes,
UnitOfWorkChangeSet changes,
AbstractSession session)
This method takes a hastable of primitive objects and adds them to the add list.
|
Vector |
getAddIndexes()
This method returns the collection of indexes in which changes were made to this collection.
|
Hashtable |
getAddObjectList()
This method returns the collection of ChangeSets that were added to the collection.
|
int |
getStartRemoveIndex()
This method returns the index from where objects must be removed from the collection
|
void |
mergeRecord(ChangeRecord mergeFromRecord,
UnitOfWorkChangeSet mergeToChangeSet,
UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL:
This method will be used to merge one record into another
|
void |
setStartRemoveIndex(int startRemoveIndex)
This method sets the index from where objects must be removed from the collection
|
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttribute, getOwner
protected Hashtable addObjectList
protected Vector addIndexes
protected int startIndexOfRemove
public OrderedCollectionChangeRecord(ObjectChangeSet owner)
owner
- prototype.changeset.ObjectChangeSet that ObjectChangeSet that uses this recordpublic void addAdditionChange(Hashtable additions, Vector indexes, UnitOfWorkChangeSet changes, AbstractSession session)
public Vector getAddIndexes()
getAddIndexes
in interface OrderedCollectionChangeRecord
public Hashtable getAddObjectList()
getAddObjectList
in interface OrderedCollectionChangeRecord
public int getStartRemoveIndex()
getStartRemoveIndex
in interface OrderedCollectionChangeRecord
public void mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
mergeRecord
in class ChangeRecord
public void setStartRemoveIndex(int startRemoveIndex)
public void updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
updateReferences
in class ChangeRecord
Copyright © 2023. All rights reserved.