db4o - database for objects v1.04

com.db4o
Class Db4o

java.lang.Object
  |
  +--com.db4o.Db4o

public final class Db4o
extends java.lang.Object

- the db4o factory.

The Db4o class serves as a factory, to open  ObjectContainer  connections. Global settings and the version information are also found in the Db4o class.


Method Summary
static void echo(boolean displayMessages)
          turns db4o messages on and off.
static ObjectContainer openFile(java.lang.String databaseFileName)
          opens an ObjectContainer  interface to the specified database file.
static ObjectContainer use(java.lang.Object jNLPRandomAccessFile)
           Java Web Start interface to open an ObjectContainer on a JNLPRandomAccessFile.
static java.lang.String version()
          returns information on the currently used db4o version.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

echo

public static final void echo(boolean displayMessages)
turns db4o messages on and off.
Parameters:
displayMessages - true if echo messages are to be given out

openFile

public static final ObjectContainer openFile(java.lang.String databaseFileName)
opens an ObjectContainer  interface to the specified database file.
Parameters:
fileName - the full path to the database file

use

public static final ObjectContainer use(java.lang.Object jNLPRandomAccessFile)
Java Web Start interface to open an ObjectContainer on a JNLPRandomAccessFile. Make sure the JNLPRandomAccessFile is opened for readwrite access and that  sufficient filespace is reserved with FileContents.setMaxLength().
Parameters:
jNLPRandomAccessFile - a javax.jnlp.JNLPRandomAccessFile, typically opened with javax.jnlp.FileContents.getRandomAccessFile("rw");

version

public static final java.lang.String version()
returns information on the currently used db4o version.
Returns:
version information as a String

db4o - database for objects v1.04