EclipseLink 1.0_1.0M2 API Reference - Incubation

org.eclipse.persistence.eis
Class EISCollectionChangeRecord

java.lang.Object
  extended by CollectionChangeRecord
      extended by org.eclipse.persistence.eis.EISCollectionChangeRecord
All Implemented Interfaces:
ChangeRecord, EISCollectionChangeRecord

public class EISCollectionChangeRecord
extends CollectionChangeRecord
implements EISCollectionChangeRecord

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


Constructor Summary
EISCollectionChangeRecord(ObjectChangeSet owner, java.lang.String attributeName, DatabaseMapping mapping)
          Construct a ChangeRecord that can be used to represent the changes to an unordered collection.
 
Method Summary
 void addAddedChangeSet(java.lang.Object changeSet)
          Add an added change set.
 void addChangedMapKeyChangeSet(java.lang.Object changeSet)
          Add an changed key change set.
 void addRemovedChangeSet(java.lang.Object changeSet)
          Add an removed change set.
 java.util.Vector getAdds()
          ADVANCED: Return the added stuff.
 java.util.Vector getChangedMapKeys()
          ADVANCED: Return the stuff whose Map keys have changed.
 java.util.Vector getRemoves()
          ADVANCED: Return the removed stuff.
 boolean hasChanges()
          Return whether any changes have been recorded with the change record.
 void simpleAddChangeSet(java.lang.Object changeSet)
          Add a change set after it has been applied.
 void simpleRemoveChangeSet(java.lang.Object changeSet)
          Remove a change set after it has been applied.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.persistence.sessions.changesets.ChangeRecord
getAttribute, getOwner
 

Constructor Detail

EISCollectionChangeRecord

public EISCollectionChangeRecord(ObjectChangeSet owner,
                                 java.lang.String attributeName,
                                 DatabaseMapping mapping)
Construct a ChangeRecord that can be used to represent the changes to an unordered collection.

Method Detail

addAddedChangeSet

public void addAddedChangeSet(java.lang.Object changeSet)
Add an added change set.


addChangedMapKeyChangeSet

public void addChangedMapKeyChangeSet(java.lang.Object changeSet)
Add an changed key change set.


addRemovedChangeSet

public void addRemovedChangeSet(java.lang.Object changeSet)
Add an removed change set.


getAdds

public java.util.Vector getAdds()
ADVANCED: Return the added stuff. The contents of this collection is determined by the mapping that populated it

Specified by:
getAdds in interface EISCollectionChangeRecord

getChangedMapKeys

public java.util.Vector 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 interface EISCollectionChangeRecord

getRemoves

public java.util.Vector getRemoves()
ADVANCED: Return the removed stuff. The contents of this collection is determined by the mapping that populated it

Specified by:
getRemoves in interface EISCollectionChangeRecord

hasChanges

public boolean hasChanges()
Return whether any changes have been recorded with the change record.

Specified by:
hasChanges in interface EISCollectionChangeRecord

simpleAddChangeSet

public void simpleAddChangeSet(java.lang.Object changeSet)
Add a change set after it has been applied.


simpleRemoveChangeSet

public void simpleRemoveChangeSet(java.lang.Object changeSet)
Remove a change set after it has been applied.


EclipseLink 1.0_1.0M2 API Reference - Incubation