Package io.ebeaninternal.json
Class ModifyAwareFlag
- java.lang.Object
-
- io.ebeaninternal.json.ModifyAwareFlag
-
- All Implemented Interfaces:
ModifyAwareOwner
,Serializable
public class ModifyAwareFlag extends Object implements ModifyAwareOwner
Detects when content has been modified and as such needs to be persisted (included in an update).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ModifyAwareFlag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isMarkedDirty()
Return true if the value is considered dirty.void
markAsModified()
Marks the object as modified.void
resetMarkedDirty()
Reset the dirty state to clean.
-
-
-
Constructor Detail
-
ModifyAwareFlag
public ModifyAwareFlag()
-
-
Method Detail
-
isMarkedDirty
public boolean isMarkedDirty()
Description copied from interface:ModifyAwareOwner
Return true if the value is considered dirty. Note that this resets the dirty status back to clean.- Specified by:
isMarkedDirty
in interfaceModifyAwareOwner
-
markAsModified
public void markAsModified()
Description copied from interface:ModifyAwareOwner
Marks the object as modified.- Specified by:
markAsModified
in interfaceModifyAwareOwner
-
resetMarkedDirty
public void resetMarkedDirty()
Description copied from interface:ModifyAwareOwner
Reset the dirty state to clean.- Specified by:
resetMarkedDirty
in interfaceModifyAwareOwner
-
-