Interface to classes that are able to track changes to their internal state.
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.Object |
getOriginalValue(java.lang.String propertyName) Returns the original value of the property prior to when trackChanges() was called |
|
boolean |
hasChanged() @return True if the instance has any changes |
|
boolean |
hasChanged(java.lang.String propertyName) @param propertyName The name of the property |
|
java.util.List<java.lang.String> |
listDirtyPropertyNames() @return A list of the dirty property names |
|
void |
markDirty() Marks this instance as dirty |
|
void |
markDirty(java.lang.String propertyName) Marks the given property name as dirty |
|
void |
markDirty(java.lang.String propertyName, java.lang.Object newValue) Marks the given property name as dirty |
|
void |
markDirty(java.lang.String propertyName, java.lang.Object newValue, java.lang.Object oldValue) Marks the given property name as dirty |
|
void |
trackChanges() Indicates that the instance should start tacking changes. |
Returns the original value of the property prior to when trackChanges() was called
propertyName
- The property name
propertyName
- The name of the property
Marks this instance as dirty
Marks the given property name as dirty
propertyName
- The property nameMarks the given property name as dirty
propertyName
- The property namenewValue
- The new valueMarks the given property name as dirty
propertyName
- The property namenewValue
- The new valueIndicates that the instance should start tacking changes. Note that if the instance is dirty this will clear any previously tracked changes