db4o 4.0

com.db4o.ext
Class ExtDb4o

java.lang.Object
  extended bycom.db4o.Db4o
      extended bycom.db4o.ext.ExtDb4o

public final class ExtDb4o
extends Db4o

extended factory class with static methods to open special db4o sessions.


Constructor Summary
ExtDb4o()
           
 
Method Summary
static ObjectContainer openMemoryFile(MemoryFile memoryFile)
          opens an ObjectContainer for in-memory use .
 
Methods inherited from class com.db4o.Db4o
configure, licensedTo, main, openClient, openFile, openServer, version
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtDb4o

public ExtDb4o()
Method Detail

openMemoryFile

public static final ObjectContainer openMemoryFile(MemoryFile memoryFile)
opens an ObjectContainer for in-memory use .

In-memory ObjectContainers are useful for maximum performance on small databases, for swapping objects or for storing db4o format data to other media or other databases.

Be aware of the danger of running into OutOfMemory problems or complete loss of all data, in case of hardware or JVM failures.

Parameters:
memoryFile - a MemoryFile to store the raw byte data.
Returns:
an open ObjectContainer
See Also:
MemoryFile

db4o 4.0