com.mobixess.jodb.core
Class JODB

java.lang.Object
  extended by com.mobixess.jodb.core.JODB

public class JODB
extends java.lang.Object

Author:
Mobixess Factory class to launch JODB engine.
Static methods can be used to obtain database session containers.

Constructor Summary
JODB()
           
 
Method Summary
static ObjectContainer open(java.io.File file)
          Opens an ObjectContainer on the specified database file for local use.
static ObjectContainer open(java.lang.String file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JODB

public JODB()
Method Detail

open

public static final ObjectContainer open(java.lang.String file)
                                  throws java.io.IOException
Throws:
java.io.IOException

open

public static final ObjectContainer open(java.io.File file)
                                  throws java.io.IOException
Opens an ObjectContainer on the specified database file for local use.

Subsequent calls with the same database file name will return the same ObjectContainer object.

Every call to openFile() requires a corresponding ObjectContainer.close.

Database files can only be accessed for readwrite access from one process (one Java VM) at one time.

Parameters:
file -
Returns:
ObjectContainer session container
Throws:
java.io.IOException


Copyright © Mobixess Inc. All Rights Reserved.