org.openmobileis.database.fastobjectdb.db.store
Class FODBCollectionIndexFile
java.lang.Object
org.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FODBCollectionIndexFile
public FODBCollectionIndexFile(FODBCollectionFile cf)
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.