|
||||||||||
| 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
public abstract class AbstractSavable
Abstract implementation of Savable.
| Constructor Summary | |
|---|---|
protected |
AbstractSavable()
Get an instance of AbstractSavable. |
| Method Summary | |
|---|---|
protected void |
finalize()
If this object is still dirtyduring finalization, log it. |
Collection<? extends Savable> |
getPostSavables(SaveContext context)
Get the dependent objects for this Savable. |
Collection<? extends Savable> |
getPreSavables(SaveContext context)
Get the objects that need to be saved before this object. |
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. |
void |
transactionCommited()
Whenever this transaction is committed, automatically flag it as 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<? extends Savable> getPreSavables(SaveContext context)
getPreSavables in interface Savablecontext - SaveContext being used in this Saver session
public Collection<? extends Savable> getPostSavables(SaveContext context)
getPostSavables in interface Savablecontext - SaveContext being used in this Saver session
public void transactionCommited()
transactionCommited in interface TransactionListener
protected void finalize()
throws Throwable
dirtyduring finalization, log it.
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||