Class EISCollectionChangeRecord

All Implemented Interfaces:
Serializable, ChangeRecord, CollectionChangeRecord, EISCollectionChangeRecord

public class EISCollectionChangeRecord extends CollectionChangeRecord implements EISCollectionChangeRecord
INTERNAL: Capture the changes for an unordered collection as collections of adds and removes.
See Also:
  • Constructor Details

    • EISCollectionChangeRecord

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

    • addAddedChangeSet

      public void addAddedChangeSet(Object changeSet)
      Add an added change set.
    • addChangedMapKeyChangeSet

      public void addChangedMapKeyChangeSet(Object changeSet)
      Add an changed key change set.
    • addRemovedChangeSet

      public void addRemovedChangeSet(Object changeSet)
      Add an removed change set.
    • getAdds

      public List 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 List 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 List 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 CollectionChangeRecord
      Specified by:
      hasChanges in interface EISCollectionChangeRecord
      Overrides:
      hasChanges in class CollectionChangeRecord
      Returns:
      boolean
    • simpleAddChangeSet

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

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