db4o 8.0

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 a Bin to store db4o database data to.

See Also:
FileConfiguration.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.
 

Method Detail

open

Bin open(com.db4o.io.BinConfiguration config)
         throws Db4oIOException
opens a Bin 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 bin
newUri - future URI of the bin
Throws:
java.io.IOException - if the bin could not be deleted
Since:
7.9

db4o 8.0

Copyright 2009 Versant Corporation. All rights reserved.