#1152 - Refactor EJson internals extracting io.ebean.service.SpiJsonService

This commit is contained in:
rob bygrave
2017-10-05 00:29:43 +13:00
parent 90cf3fddc9
commit 7524903aea
29 changed files with 406 additions and 91 deletions
@@ -0,0 +1,26 @@
package io.ebeaninternal.json;
import java.io.Serializable;
/**
* Owner object notified when a modification is detected.
*/
public interface ModifyAwareOwner extends Serializable {
/**
* Return true if the value is considered dirty.
* Note that this resets the dirty status back to clean.
*/
boolean isMarkedDirty();
/**
* Marks the object as modified.
*/
void markAsModified();
/**
* Reset the dirty state to clean.
*/
void resetMarkedDirty();
}