org.apache.cayenne.lifecycle.changeset
Class GenericChangeSet
java.lang.Object
org.apache.cayenne.lifecycle.changeset.GenericChangeSet
- All Implemented Interfaces:
- ChangeSet
public class GenericChangeSet
- extends Object
- implements ChangeSet
A ChangeSet implemented as a wrapper on top of GraphDiff of unspecified
nature.
Synchronization note: While this class is thread safe, but is not generally intended
for use in multi-threaded manner. It is common to use it within a single transaction
thread.
- Since:
- 3.1
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericChangeSet
public GenericChangeSet(GraphDiff diff)
getChanges
public Map<String,PropertyChange> getChanges(Persistent object)
- Description copied from interface:
ChangeSet
- Returns a map of changes for a given object in its context, keyed by property name.
If the object is unchanged, an empty map is returned.
- Specified by:
getChanges in interface ChangeSet
Copyright © 2001-2013 Apache Cayenne. All Rights Reserved.