Package org.apache.cayenne.util
Class ObjectContextGraphAction
java.lang.Object
org.apache.cayenne.util.ObjectContextGraphAction
- All Implemented Interfaces:
- Serializable
public class ObjectContextGraphAction extends Object implements Serializable
A base implementation of a helper class to handle
 
ObjectContext.propertyChanged(org.apache.cayenne.Persistent, String, Object, Object)
 processing on behalf of an ObjectContext.- Since:
- 3.0 TODO: make this non-public!
- See Also:
- Serialized Form
- 
Field SummaryFields Modifier and Type Field Description protected ObjectContextcontext
- 
Constructor SummaryConstructors Constructor Description ObjectContextGraphAction(ObjectContext context)
- 
Method SummaryModifier and Type Method Description protected voidhandleArcPropertyChange(Persistent object, ArcProperty property, Object oldValue, Object newValue)voidhandlePropertyChange(Persistent object, String propertyName, Object oldValue, Object newValue)Handles property change in a Persistent object, routing to eitherhandleArcPropertyChange(Persistent, ArcProperty, Object, Object)orhandleSimplePropertyChange(Persistent, String, Object, Object).protected voidhandleSimplePropertyChange(Persistent object, String propertyName, Object oldValue, Object newValue)protected booleanmarkAsDirty(Persistent object)Changes object state to MODIFIED if needed, returning true if the change has occurred, false if not.
- 
Field Details- 
context
 
- 
- 
Constructor Details- 
ObjectContextGraphAction
 
- 
- 
Method Details- 
handlePropertyChangepublic void handlePropertyChange(Persistent object, String propertyName, Object oldValue, Object newValue)Handles property change in a Persistent object, routing to eitherhandleArcPropertyChange(Persistent, ArcProperty, Object, Object)orhandleSimplePropertyChange(Persistent, String, Object, Object).
- 
handleArcPropertyChangeprotected void handleArcPropertyChange(Persistent object, ArcProperty property, Object oldValue, Object newValue)
- 
handleSimplePropertyChangeprotected void handleSimplePropertyChange(Persistent object, String propertyName, Object oldValue, Object newValue)
- 
markAsDirtyChanges object state to MODIFIED if needed, returning true if the change has occurred, false if not.
 
-