|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface of persistent storage. Programmer should use instance of one of particular
implementations if this unterface. IStorage
interface is needed when the application needs
to perfrom manipulations with persistent data (add/update/delete objects) without loading/saveing the
whole object three to/from memory. If application needs only serialization mechanism, IStorage
interface is not needed.
Method Summary | |
void |
close()
Close database |
boolean |
create()
Open existed or create new database |
java.util.Enumeration |
enumerateObjects()
Get enumeration of all live persistent objects in the database. |
java.lang.Object |
getRoot()
Get root object. |
boolean |
open()
Open existed database. |
boolean |
remove()
Remove database. |
void |
remove(java.lang.Object obj)
Remove object from the storage. |
void |
setRoot(java.lang.Object root)
Set new root object. |
void |
store(java.lang.Object obj)
Store object in the database. |
Method Detail |
public void close()
public boolean create()
true
if database was successfully opened, false
otherwisepublic java.util.Enumeration enumerateObjects()
public java.lang.Object getRoot()
public boolean open()
true
if database was successfully opened, false
otherwisepublic boolean remove()
true
if database was successfully deleted, false
otherwisepublic void remove(java.lang.Object obj)
public void setRoot(java.lang.Object root)
root
- new root object. If it is not yet persistent (has no assigned OID), it is automatically
made persistent and stored in the database.public void store(java.lang.Object obj)
store
method for each modified persistent object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |