|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.garret.serme.file.FileStorage
Storage implementation on top of javax.microtedition.io.file package.
Constructor Summary | |
FileStorage(java.lang.String path)
Storage constructor |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileStorage(java.lang.String path)
path
- path to the database fileMethod Detail |
public void close()
IStorage
close
in interface IStorage
public boolean create()
IStorage
create
in interface IStorage
true
if database was successfully opened, false
otherwisepublic java.util.Enumeration enumerateObjects()
IStorage
enumerateObjects
in interface IStorage
public java.lang.Object getRoot()
IStorage
getRoot
in interface IStorage
public boolean open()
IStorage
open
in interface IStorage
true
if database was successfully opened, false
otherwisepublic boolean remove()
IStorage
remove
in interface IStorage
true
if database was successfully deleted, false
otherwisepublic void remove(java.lang.Object obj)
IStorage
remove
in interface IStorage
public void setRoot(java.lang.Object root)
IStorage
setRoot
in interface IStorage
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)
IStorage
store
method for each modified persistent object.
store
in interface IStorage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |