public class NodePropertyChangeOperation extends NodeDiff
Modifier and Type | Field and Description |
---|---|
protected Object |
newValue |
protected Object |
oldValue |
protected String |
property |
Constructor and Description |
---|
NodePropertyChangeOperation(Object nodeId,
String property,
Object oldValue,
Object newValue) |
NodePropertyChangeOperation(Object nodeId,
String property,
Object oldValue,
Object newValue,
int diffId) |
Modifier and Type | Method and Description |
---|---|
void |
apply(GraphChangeHandler tracker)
Calls appropriate methods on the handler to "replay" this change.
|
String |
getProperty() |
boolean |
isNoop()
Returns true if both old and new value are equal.
|
void |
undo(GraphChangeHandler tracker)
Calls appropriate methods on the handler to revert this change.
|
protected String property
protected Object oldValue
protected Object newValue
public NodePropertyChangeOperation(Object nodeId, String property, Object oldValue, Object newValue)
public String getProperty()
public boolean isNoop()
public void apply(GraphChangeHandler tracker)
GraphDiff
Copyright © 2001–2023 Apache Cayenne. All rights reserved.