org.apache.cayenne.lifecycle.changeset
Interface ChangeSet

All Known Implementing Classes:
GenericChangeSet

public interface ChangeSet

Represents a set of changes to persistent objects corresponding to a certain lifecycle stage. The changes are presented in a more usable form compared to the internal Cayenne representation as GraphDiff. One or more changes to the same property of the same object are all combined in a single PropertyChange instance.

Since:
3.1

Field Summary
static String OBJECT_ID_PROPERTY_NAME
           
 
Method Summary
 Map<String,PropertyChange> getChanges(Persistent object)
          Returns a map of changes for a given object in its context, keyed by property name.
 

Field Detail

OBJECT_ID_PROPERTY_NAME

static final String OBJECT_ID_PROPERTY_NAME
See Also:
Constant Field Values
Method Detail

getChanges

Map<String,PropertyChange> getChanges(Persistent object)
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.



Copyright © 2001-2013 Apache Cayenne. All Rights Reserved.