|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.db4o.io.FileStorage
public class FileStorage
Storage adapter to store db4o database data to physical files on hard disc.
Nested Class Summary | |
---|---|
static class |
FileStorage.FileBin
|
Constructor Summary | |
---|---|
FileStorage()
|
Method Summary | |
---|---|
void |
delete(java.lang.String uri)
Deletes the bin for the given URI from the storage. |
boolean |
exists(java.lang.String uri)
returns true if the specified file system path already exists. |
Bin |
open(com.db4o.io.BinConfiguration config)
opens a FileStorage.FileBin on the specified URI (file system path). |
void |
rename(java.lang.String oldUri,
java.lang.String newUri)
Renames the bin for the given old URI to the new URI. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileStorage()
Method Detail |
---|
public Bin open(com.db4o.io.BinConfiguration config) throws Db4oIOException
FileStorage.FileBin
on the specified URI (file system path).
open
in interface Storage
Db4oIOException
public boolean exists(java.lang.String uri)
exists
in interface Storage
public void delete(java.lang.String uri) throws java.io.IOException
Storage
delete
in interface Storage
uri
- bin URI
java.io.IOException
- if the bin could not be deletedpublic void rename(java.lang.String oldUri, java.lang.String newUri) throws java.io.IOException
Storage
rename
in interface Storage
oldUri
- URI of the existing binnewUri
- future URI of the bin
java.io.IOException
- if the bin could not be deleted
|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |