org.openmobileis.database.fastobjectdb.db.store
Class FODBMainFile

java.lang.Object
  extended byorg.openmobileis.database.fastobjectdb.db.store.FODBMainFile

public class FODBMainFile
extends java.lang.Object

FODBMainFile is a Class that defines simple functions to access our data file. It's also responsible of the way the database file is structured. It defines static variables ACTION_CREATE and ACTION_OPEN which are private. It uses them in its constructor. Other functions don't have to know them.


Method Summary
 java.lang.String addCollection(java.lang.String collectionName)
           
static FODBMainFile createDbFile(java.lang.String filePath)
           
 java.lang.String[] getCollectionsList()
           
static FODBMainFile openDbFile(java.lang.String filePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDbFile

public static FODBMainFile createDbFile(java.lang.String filePath)
                                 throws java.io.IOException,
                                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

openDbFile

public static FODBMainFile openDbFile(java.lang.String filePath)
                               throws java.io.IOException,
                                      java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

addCollection

public java.lang.String addCollection(java.lang.String collectionName)
                               throws java.io.IOException
Throws:
java.io.IOException

getCollectionsList

public java.lang.String[] getCollectionsList()


Copyright 2005 e-Care. All Rights Reserved.