|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.db.AbstractSavable
Abstract implementation of SavableNode.
| Constructor Summary | |
protected |
AbstractSavable()
Get an instance of AbstractSavable. |
| Method Summary | |
protected void |
finalize()
If this object is still dirtyduring finalization, log it. |
Collection |
getPostSavables(SaveContext context)
Get the dependent objects for this Savable. |
Collection |
getPreSavables(SaveContext context)
Get the objects that need to be saved before this object. |
Collection |
getSavables(SaveContext context)
Get the dependent objects for this Savable. |
boolean |
isModified()
Indicate whether this object has been modified. |
boolean |
isNew()
Indicate whether this object is new. |
void |
modify()
Mark this AbstractSavable as modified. |
protected void |
setModified(boolean to)
Set the ``modified'' flag for this object. |
protected void |
setNew(boolean to)
Set the ``new'' flag for this object. |
protected void |
setSaved()
Unset the flags indicating that this object needs to be saved. |
| Methods inherited from class net.spy.SpyObject |
getLogger |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.spy.db.Savable |
save |
| Constructor Detail |
protected AbstractSavable()
| Method Detail |
public boolean isNew()
isNew in interface Savablepublic boolean isModified()
isModified in interface Savableprotected void setNew(boolean to)
to - the new value of the new flagprotected void setModified(boolean to)
to - the new value for the modified flagpublic void modify()
public Collection getSavables(SaveContext context)
getSavables in interface SavableNodepublic Collection getPreSavables(SaveContext context)
getPreSavables in interface SavableNodecontext - SaveContext being used in this Saver session
public Collection getPostSavables(SaveContext context)
getPostSavables in interface SavableNodecontext - SaveContext being used in this Saver session
protected void setSaved()
protected void finalize()
throws Throwable
dirtyduring finalization, log it.
Throwable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||