Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.util
Class ObjectContextGraphAction

    java.lang.Object
      org.apache.cayenne.util.ObjectContextGraphAction

All Implemented Interfaces:
  java.io.Serializable

    public class ObjectContextGraphAction

extends java.lang.Object
implements java.io.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 Summary
`protected ObjectContext` | `context`

Constructor Summary
`ObjectContextGraphAction(ObjectContext context)`

Method Summary
`protected void` | `handleArcPropertyChange(Persistent object, ArcProperty property, java.lang.Object oldValue, java.lang.Object newValue)`
`void` | `handlePropertyChange(Persistent object, java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)` Handles property change in a Persistent object, routing to either `handleArcPropertyChange(Persistent, ArcProperty, Object, Object)` or `handleSimplePropertyChange(Persistent, String, Object, Object)`.
`protected void` | `handleSimplePropertyChange(Persistent object, java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)`
`protected boolean` | `markAsDirty(Persistent object)` Changes object state to MODIFIED if needed, returning true if the change has occurred, false if not.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### context

    protected ObjectContext context

Constructor Detail

### ObjectContextGraphAction

    public ObjectContextGraphAction(ObjectContext context)

Method Detail

### handlePropertyChange

    public void handlePropertyChange(Persistent object,
                                     java.lang.String propertyName,
                                     java.lang.Object oldValue,
                                     java.lang.Object newValue)

  Handles property change in a Persistent object, routing to either `handleArcPropertyChange(Persistent, ArcProperty, Object, Object)` or `handleSimplePropertyChange(Persistent, String, Object, Object)`.

### handleArcPropertyChange

    protected void handleArcPropertyChange(Persistent object,
                                           ArcProperty property,
                                           java.lang.Object oldValue,
                                           java.lang.Object newValue)

### handleSimplePropertyChange

    protected void handleSimplePropertyChange(Persistent object,
                                              java.lang.String propertyName,
                                              java.lang.Object oldValue,
                                              java.lang.Object newValue)

### markAsDirty

    protected boolean markAsDirty(Persistent object)

  Changes object state to MODIFIED if needed, returning true if the change has occurred, false if not.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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