org.apache.cayenne.lifecycle.changeset
Class GenericChangeSet

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.apache.cayenne.lifecycle.changeset.ChangeSet
OBJECT_ID_PROPERTY_NAME
 
Constructor Summary
GenericChangeSet(GraphDiff diff)
           
 
Method Summary
 Map<String,PropertyChange> getChanges(Persistent object)
          Returns a map of changes for a given object in its context, keyed by property name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericChangeSet

public GenericChangeSet(GraphDiff diff)
Method Detail

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.