org.openmobileis.database.fastobjectdb
Class FastObjectDBManager

java.lang.Object
  extended byorg.openmobileis.database.fastobjectdb.FastObjectDBManager
Direct Known Subclasses:
SynchroFastObjectDBManager

public class FastObjectDBManager
extends java.lang.Object

Factory pattern to manage one FODb inside an application. Use to get the current db factory instance. Use the PropertiesManager fastobjectdb.database.path and fastobjectdb.database.name properties to define db path and name.

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu

Field Summary
protected static FastObjectDB db
           
 
Constructor Summary
FastObjectDBManager()
           
 
Method Summary
static FastObjectDB getCurrentFODB()
          return the current FODB instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

db

protected static FastObjectDB db
Constructor Detail

FastObjectDBManager

public FastObjectDBManager()
Method Detail

getCurrentFODB

public static FastObjectDB getCurrentFODB()
                                   throws DatabaseException
return the current FODB instance. Open or create it if not done.

Returns:
the current database instance.
Throws:
DatabaseException


Copyright 2005 e-Care. All Rights Reserved.