mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
27 lines
488 B
Java
27 lines
488 B
Java
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();
|
|
|
|
}
|