|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.garret.serme.Persistent
Class which remembers the storage to which it belongs. When objet is loaded from ther storage, the reference to this storage is saved in the object using setStorage method. Using this reference to the storage, object can store or remove himself from the storage.
Constructor Summary | |
Persistent()
|
Method Summary | |
IStorage |
getStorage()
Get storage where object is stored |
void |
remove()
Remove object from the storage |
void |
setStorage(IStorage storage)
Specify storage for the object. |
void |
store()
Save object in the storage (if any) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.garret.serme.ISerializable |
readObject, writeObject |
Constructor Detail |
public Persistent()
Method Detail |
public IStorage getStorage()
null
if object is not persistentpublic void remove()
public void setStorage(IStorage storage)
storage
- associated storagepublic void store()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |