Package com.db4o.io
Interface Storage
-
- All Known Implementing Classes:
CachingStorage,FileStorage,MemoryStorage,NonFlushingStorage,PagingMemoryStorage,StorageDecorator
public interface StorageBase interface for Storage adapters that open aBinto store db4o database data to.- See Also:
FileConfiguration.storage(Storage)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(java.lang.String uri)Deletes the bin for the given URI from the storage.booleanexists(java.lang.String uri)returns true if a Bin (file or memory) exists with the passed name.Binopen(BinConfiguration config)opens aBinto store db4o database data.voidrename(java.lang.String oldUri, java.lang.String newUri)Renames the bin for the given old URI to the new URI.
-
-
-
Method Detail
-
open
Bin open(BinConfiguration config) throws Db4oIOException
opens aBinto store db4o database data.- Throws:
Db4oIOException
-
exists
boolean exists(java.lang.String uri)
returns true if a Bin (file or memory) exists with the passed name.
-
delete
void delete(java.lang.String uri) throws java.io.IOExceptionDeletes the bin for the given URI from the storage.- Parameters:
uri- bin URI- Throws:
java.io.IOException- if the bin could not be deleted- Since:
- 7.9
-
rename
void rename(java.lang.String oldUri, java.lang.String newUri) throws java.io.IOExceptionRenames the bin for the given old URI to the new URI. If a bin for the new URI exists, it will be overwritten.- Parameters:
oldUri- URI of the existing binnewUri- future URI of the bin- Throws:
java.io.IOException- if the bin could not be deleted- Since:
- 7.9
-
-