db4o v1.10

com.db4o
Class Db4o

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

public final class Db4o
extends java.lang.Object

factory class with static methods to configure and start the engine.


This class serves as a factory class, to open  ObjectContainer  connections.

The global db4o Configuration object for the running Java session is available through the configure() method.

On running the Db4o class it prints the version information to System.out.


Method Summary
static Configuration configure()
          returns the global db4o Configuration object for the running Java session.

static void echo(boolean displayMessages)
          turns db4o messages on and off.

static void main(java.lang.String[] args)
          prints version information to System.out.
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 the used db4o version.

 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

configure

public static Configuration configure()
returns the global db4o Configuration object for the running Java session.

Returns:
Configuration the global Configuration object

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

main

public static void main(java.lang.String[] args)
prints version information to System.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 the used db4o version.

Returns:
version information as a String

db4o v1.10