|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.db4o.io.StorageDecorator
public class StorageDecorator
Wrapper base class for all classes that wrap Storage. Each class that adds functionality to a Storage must extend this class.
BinDecorator
Constructor Summary | |
---|---|
StorageDecorator(Storage storage)
|
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 a Bin (file or memory) exists with the passed name. |
Bin |
open(com.db4o.io.BinConfiguration config)
opens a Bin to store db4o database data. |
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 StorageDecorator(Storage storage)
Method Detail |
---|
public boolean exists(java.lang.String uri)
Storage
exists
in interface Storage
public Bin open(com.db4o.io.BinConfiguration config) throws Db4oIOException
Storage
Bin
to store db4o database data.
open
in interface Storage
Db4oIOException
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 |