Package com.db4o.io
Interface Storage
-
- All Known Implementing Classes:
CachingStorage
,FileStorage
,MemoryStorage
,NonFlushingStorage
,PagingMemoryStorage
,StorageDecorator
public interface Storage
Base interface for Storage adapters that open aBin
to store db4o database data to.- See Also:
FileConfiguration.storage(Storage)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 aBin
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.
-
-
-
Method Detail
-
open
Bin open(BinConfiguration config) throws Db4oIOException
opens aBin
to 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.IOException
Deletes 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.IOException
Renames 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
-
-