public class DefaultSubDirtyable extends java.lang.Object implements SubDirtyable
SubDirtyable interface indicate
that they want to be saved as content of the document that owns
them. In general, content is never dirty. When content is marked
dirty, it marks its owner dirty.| Constructor and Description |
|---|
DefaultSubDirtyable() |
| Modifier and Type | Method and Description |
|---|---|
protected Dirtyable |
getOwner() |
boolean |
isDirty()
True if the data in the object has been modified.
|
void |
markDirty(boolean dirty)
Marks the data with the specified dirty state.
|
void |
setOwner(Dirtyable owner)
This method should be called to set the document in which a
SubDirtyable implementation will be persisted. |
public boolean isDirty()
Dirtyablepublic void markDirty(boolean dirty)
DirtyablemarkDirty(...) instead of
setDirty(...) so that the JavaBeans
Introspector will not
mistakenly identify "dirty" as a JavaBean property.public void setOwner(Dirtyable owner)
SubDirtyableSubDirtyable implementation will be persisted.setOwner in interface SubDirtyableowner - The Dirtyable object in which this
SubDirtyable will be saved.protected Dirtyable getOwner()