public class DefaultLinkedDirtyable extends DefaultDirtyable implements java.lang.Comparable, LinkedDirtyable
LinkedDirtyable
interface that is primarily intended to be subclassed by data
classes that track their own dirty state. For details on what it
means to "link" Dirtyable
s, see LinkedDirtyable
.LinkedDirtyable
Constructor and Description |
---|
DefaultLinkedDirtyable() |
DefaultLinkedDirtyable(LinkedDirtyable delegator) |
Modifier and Type | Method and Description |
---|---|
protected static int |
compare(java.lang.String s1,
java.lang.String s2) |
int |
compareTo(java.lang.Object o) |
void |
linkContainingDirtyable(Dirtyable containing)
This method is part of an API that is still undergoing changes.
|
void |
linkEmbeddedDirtyable(Dirtyable embedded)
This method is part of an API that is still undergoing changes.
|
void |
linkEmbeddedDirtyable(LinkedDirtyable embedded) |
void |
linkEmbeddedDirtyables(LinkedDirtyable[] embedded) |
void |
markDirty(boolean dirty)
Marks the data with the specified dirty state.
|
void |
setOwner(Dirtyable containing)
This method should be called to set the document in which a
SubDirtyable implementation will be persisted. |
void |
unlinkContainingDirtyable(Dirtyable containing)
This method is part of an API that is still undergoing changes.
|
void |
unlinkEmbeddedDirtyable(Dirtyable embedded)
This method is part of an API that is still undergoing changes.
|
void |
unlinkEmbeddedDirtyable(LinkedDirtyable embedded) |
void |
unlinkEmbeddedDirtyables(LinkedDirtyable[] embedded) |
dirtyLabel, dirtyLabel, dirtyLabel, isDirty
public DefaultLinkedDirtyable()
public DefaultLinkedDirtyable(LinkedDirtyable delegator)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
protected static final int compare(java.lang.String s1, java.lang.String s2)
public void markDirty(boolean dirty)
Dirtyable
markDirty(...)
instead of
setDirty(...)
so that the JavaBeans
Introspector
will not
mistakenly identify "dirty" as a JavaBean property.markDirty
in interface Dirtyable
markDirty
in class DefaultDirtyable
dirty
- If true
, sets the object as being
dirty; if false
, sets the object as being up-to-date.public void setOwner(Dirtyable containing)
SubDirtyable
SubDirtyable
implementation will be persisted.setOwner
in interface SubDirtyable
containing
- The Dirtyable
object in which this
SubDirtyable
will be saved.public void linkContainingDirtyable(Dirtyable containing)
linkContainingDirtyable
in interface LinkedDirtyable
public void unlinkContainingDirtyable(Dirtyable containing)
unlinkContainingDirtyable
in interface LinkedDirtyable
public void linkEmbeddedDirtyable(Dirtyable embedded)
linkEmbeddedDirtyable
in interface LinkedDirtyable
public void unlinkEmbeddedDirtyable(Dirtyable embedded)
unlinkEmbeddedDirtyable
in interface LinkedDirtyable
public void linkEmbeddedDirtyable(LinkedDirtyable embedded)
public void unlinkEmbeddedDirtyable(LinkedDirtyable embedded)
public void linkEmbeddedDirtyables(LinkedDirtyable[] embedded)
public void unlinkEmbeddedDirtyables(LinkedDirtyable[] embedded)