io.ebeaninternal.json.ModifyAwareFlag Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebean Show documentation
Show all versions of ebean Show documentation
composite of common runtime dependencies for all platforms
package io.ebeaninternal.json;
/**
* Detects when content has been modified and as such needs to be persisted (included in an update).
*/
public class ModifyAwareFlag implements ModifyAwareOwner {
private static final long serialVersionUID = 1;
boolean dirty;
@Override
public boolean isMarkedDirty() {
if (!dirty) return false;
dirty = false;
return true;
}
@Override
public void markAsModified() {
dirty = true;
}
@Override
public void resetMarkedDirty() {
dirty = false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy