org.apache.cayenne.util
Class ObjectContextGraphAction
java.lang.Object
org.apache.cayenne.util.ObjectContextGraphAction
- All Implemented Interfaces:
- Serializable
public abstract 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
- Author:
- Andrus Adamchik
- See Also:
- Serialized Form
|
Method Summary |
protected abstract void |
handleArcPropertyChange(Persistent object,
ArcProperty property,
Object oldValue,
Object newValue)
|
void |
handlePropertyChange(Persistent object,
String propertyName,
Object oldValue,
Object newValue)
Handles property change in a Peristent object, routing to either
handleArcPropertyChange(Persistent, ArcProperty, Object, Object) or
handleSimplePropertyChange(Persistent, String, Object, Object). |
protected abstract void |
handleSimplePropertyChange(Persistent object,
String propertyName,
Object oldValue,
Object newValue)
|
protected boolean |
markAsDirty(Persistent object)
Changes object state to MODIFIED if needed, returning true if the change has
occured, false if not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected ObjectContext context
ObjectContextGraphAction
public ObjectContextGraphAction(ObjectContext context)
handlePropertyChange
public void handlePropertyChange(Persistent object,
String propertyName,
Object oldValue,
Object newValue)
- Handles property change in a Peristent object, routing to either
handleArcPropertyChange(Persistent, ArcProperty, Object, Object) or
handleSimplePropertyChange(Persistent, String, Object, Object).
handleArcPropertyChange
protected abstract void handleArcPropertyChange(Persistent object,
ArcProperty property,
Object oldValue,
Object newValue)
handleSimplePropertyChange
protected abstract void handleSimplePropertyChange(Persistent object,
String propertyName,
Object oldValue,
Object newValue)
markAsDirty
protected boolean markAsDirty(Persistent object)
- Changes object state to MODIFIED if needed, returning true if the change has
occured, false if not.
Copyright © 2001-2007 Apache Cayenne. All Rights Reserved.