db4o 7.4

com.db4o.ext
Class ExtDb4o

java.lang.Object
  extended by com.db4o.Db4o
      extended by com.db4o.ext.ExtDb4o

public class ExtDb4o
extends Db4o

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


Constructor Summary
ExtDb4o()
           
 
Method Summary
static ObjectContainer openMemoryFile(Configuration config, MemoryFile memoryFile)
          opens an ObjectContainer for in-memory use .
static ObjectContainer openMemoryFile(MemoryFile memoryFile)
          Operates just like openMemoryFile(Configuration, MemoryFile), but uses the global db4o Configuration context.
 
Methods inherited from class com.db4o.Db4o
cloneConfiguration, configure, main, newConfiguration, openClient, openClient, openClient, openFile, openFile, openServer, openServer, 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)
Operates just like openMemoryFile(Configuration, MemoryFile), but uses the global db4o Configuration context. 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

openMemoryFile

public static final ObjectContainer openMemoryFile(Configuration config,
                                                   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:
config - a custom Configuration instance to be obtained via Db4o.newConfiguration()
memoryFile - a MemoryFile to store the raw byte data.
Returns:
an open ObjectContainer
See Also:
MemoryFile

db4o 7.4

Copyright 2007 db4objects Inc. All rights reserved.