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

java.lang.Object
  extended byorg.openmobileis.database.fastobjectdb.db.store.FODBObjectDatabaseFile
All Implemented Interfaces:
TransactionFile

public class FODBObjectDatabaseFile
extends java.lang.Object
implements TransactionFile

Title: OpenMobileIS project source
Description: Low level classe that store Object in a file.

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

Field Summary
protected  java.io.RandomAccessFile dataFile
           
protected static long DEL_LIST_END
           
protected  java.lang.String fileName
           
protected  long firstDel
           
protected static byte IS_ACTIVE
           
protected static byte IS_DELETED
           
 
Constructor Summary
FODBObjectDatabaseFile(java.io.File file)
           
FODBObjectDatabaseFile(java.lang.String name)
           
 
Method Summary
 void close()
           
protected  void constructorHelper()
           
 void delete()
           
 java.io.FileDescriptor getFD()
           
 java.lang.String getFileName()
           
 long getFilePointer()
           
 long length()
           
 void open()
           
 java.lang.Object readObject()
           
 void rewind()
           
 void rewriteObject(java.lang.Object obj)
           
 void seek(long pos)
           
 void skip()
           
 long writeObject(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEL_LIST_END

protected static final long DEL_LIST_END
See Also:
Constant Field Values

IS_DELETED

protected static final byte IS_DELETED
See Also:
Constant Field Values

IS_ACTIVE

protected static final byte IS_ACTIVE
See Also:
Constant Field Values

dataFile

protected java.io.RandomAccessFile dataFile

fileName

protected java.lang.String fileName

firstDel

protected long firstDel
Constructor Detail

FODBObjectDatabaseFile

public FODBObjectDatabaseFile(java.lang.String name)
                       throws java.io.IOException

FODBObjectDatabaseFile

public FODBObjectDatabaseFile(java.io.File file)
                       throws java.io.IOException
Method Detail

constructorHelper

protected void constructorHelper()
                          throws java.io.IOException
Throws:
java.io.IOException

writeObject

public long writeObject(java.lang.Object obj)
                 throws java.io.IOException
Throws:
java.io.IOException

rewriteObject

public void rewriteObject(java.lang.Object obj)
                   throws java.io.IOException
Throws:
java.io.IOException

readObject

public java.lang.Object readObject()
                            throws java.io.IOException,
                                   java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

delete

public void delete()
            throws java.io.IOException
Throws:
java.io.IOException

rewind

public void rewind()
            throws java.io.IOException
Throws:
java.io.IOException

skip

public void skip()
          throws java.io.IOException
Throws:
java.io.IOException

getFileName

public java.lang.String getFileName()

getFD

public final java.io.FileDescriptor getFD()
                                   throws java.io.IOException
Throws:
java.io.IOException

getFilePointer

public long getFilePointer()
                    throws java.io.IOException
Throws:
java.io.IOException

seek

public void seek(long pos)
          throws java.io.IOException
Throws:
java.io.IOException

length

public long length()
            throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface TransactionFile
Throws:
java.io.IOException

open

public void open()
          throws java.io.IOException
Specified by:
open in interface TransactionFile
Throws:
java.io.IOException


Copyright 2005 e-Care. All Rights Reserved.