|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.db4o.io.PagingMemoryStorage
public class PagingMemoryStorage
Storage
implementation that produces Bin
instances
that operate in memory.
Use this Storage
to work with db4o as an in-memory database.
Constructor Summary | |
---|---|
PagingMemoryStorage()
|
|
PagingMemoryStorage(int pageSize)
|
Method Summary | |
---|---|
Bin |
bin(java.lang.String uri)
Returns the memory bin for the given URI for external use. |
void |
bin(java.lang.String uri,
Bin bin)
Registers the given bin for this storage with the given URI. |
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 MemoryBin with the given URI name already exists in this Storage. |
Bin |
open(com.db4o.io.BinConfiguration config)
opens a MemoryBin for the given URI (name can be freely chosen). |
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 PagingMemoryStorage()
public PagingMemoryStorage(int pageSize)
Method Detail |
---|
public boolean exists(java.lang.String uri)
exists
in interface Storage
public Bin open(com.db4o.io.BinConfiguration config) throws Db4oIOException
open
in interface Storage
Db4oIOException
public Bin bin(java.lang.String uri)
public void bin(java.lang.String uri, Bin bin)
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 |