public class StorageDecorator extends java.lang.Object implements Storage
BinDecorator| Constructor and Description |
|---|
StorageDecorator(Storage storage) |
| Modifier and Type | Method and Description |
|---|---|
protected Bin |
decorate(BinConfiguration config,
Bin bin) |
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(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.
|
protected final Storage _storage
public StorageDecorator(Storage storage)
public boolean exists(java.lang.String uri)
Storagepublic Bin open(BinConfiguration config) throws Db4oIOException
StorageBin to store db4o database data.open in interface StorageDb4oIOExceptionprotected Bin decorate(BinConfiguration config, Bin bin)
public void delete(java.lang.String uri)
throws java.io.IOException
Storagepublic void rename(java.lang.String oldUri,
java.lang.String newUri)
throws java.io.IOException
Storage