MutableToOneRelationshipChange (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne.commitlog.model, class: MutableToOneRelationshipChange

# Class MutableToOneRelationshipChange

java.lang.Object
org.apache.cayenne.commitlog.model.MutableToOneRelationshipChange

All Implemented Interfaces:
  `PropertyChange, ToOneRelationshipChange`

public class MutableToOneRelationshipChange extends Object implements ToOneRelationshipChange

Since:
  4.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MutableToOneRelationshipChange()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `<T> T`
  `accept(PropertyChangeVisitor<T> visitor)`
  `void`
  `connected(ObjectId o)`
  `void`
  `disconnected(ObjectId o)`
  `ObjectId`
  `getNewValue()`
  `ObjectId`
  `getOldValue()`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MutableToOneRelationshipChange

    public MutableToOneRelationshipChange()

- ## Method Details

  - ### accept

    public <T> T accept(PropertyChangeVisitor<T> visitor)
    Specified by:
      `accept` in interface `PropertyChange`

  - ### getOldValue

    public ObjectId getOldValue()
    Specified by:
      `getOldValue` in interface `ToOneRelationshipChange`

  - ### getNewValue

    public ObjectId getNewValue()
    Specified by:
      `getNewValue` in interface `ToOneRelationshipChange`

  - ### connected

    public void connected(ObjectId o)

  - ### disconnected

    public void disconnected(ObjectId o)