ChangeMap (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne.commitlog.model, interface: ChangeMap

# Interface ChangeMap

All Known Implementing Classes:
  `MutableChangeMap`

public interface ChangeMap
Represents a map of changes for a graph of persistent objects.

Since:
  4.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Map<ObjectId, ? extends ObjectChange>`
  `getChanges()`
  Returns a map of changes.
  `Collection<? extends ObjectChange>`
  `getUniqueChanges()`

- ## Method Details

  - ### getChanges

    Map<ObjectId, ? extends ObjectChange> getChanges()
    Returns a map of changes. Note the same change sometimes can be present in the map twice. If ObjectId of an object has changed during the commit, the change will be accessible by both pre-commit and post-commit ID. To get unique changes, call `getUniqueChanges()`.

  - ### getUniqueChanges

    Collection<? extends ObjectChange> getUniqueChanges()