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

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

public class FODBCollectionIndexFile
extends java.lang.Object

FODBCollectionFileLink is a Class that has been created in order to facilitate access of indexs to Collection file. It contains all needed methods : readObject, writeObject, deleteObject, etc... For each of these functions, it opens and closes the Collection File. That makes sure we won't have any error, even if we forgot to open the file before we try to access it.


Constructor Summary
FODBCollectionIndexFile(FODBCollectionFile cf)
           
 
Method Summary
 void addIndexPointerToTable(long pointer)
           
 void deleteLongPtr(long ptr)
           
 void deleteNode(Node node)
           
 long[] readLongPtr(long pos)
           
 Node readNode(long pos)
           
 void rewriteHeader(FODBIndexHeader obj, long pos)
           
 void rewriteLongPtr(long[] obj, long pos)
           
 void rewriteNode(Node obj, long pos)
           
 long writeHeader(FODBIndexHeader header)
           
 long writeLongPtr(long[] ptr)
           
 long writeNode(Node node, FODBIndexHeader header)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FODBCollectionIndexFile

public FODBCollectionIndexFile(FODBCollectionFile cf)
Method Detail

readNode

public Node readNode(long pos)
              throws java.io.IOException,
                     java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeNode

public long writeNode(Node node,
                      FODBIndexHeader header)
               throws java.io.IOException,
                      java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeHeader

public long writeHeader(FODBIndexHeader header)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

rewriteHeader

public void rewriteHeader(FODBIndexHeader obj,
                          long pos)
                   throws java.io.IOException,
                          java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

rewriteNode

public void rewriteNode(Node obj,
                        long pos)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

deleteNode

public void deleteNode(Node node)
                throws java.io.IOException,
                       java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

addIndexPointerToTable

public void addIndexPointerToTable(long pointer)
                            throws java.io.IOException,
                                   java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

readLongPtr

public long[] readLongPtr(long pos)
                   throws java.io.IOException,
                          java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeLongPtr

public long writeLongPtr(long[] ptr)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

rewriteLongPtr

public void rewriteLongPtr(long[] obj,
                           long pos)
                    throws java.io.IOException,
                           java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

deleteLongPtr

public void deleteLongPtr(long ptr)
                   throws java.io.IOException,
                          java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright 2005 e-Care. All Rights Reserved.