org.openmobileis.database.fastobjectdb.db.store
Class FODBObjectDatabaseFile
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FODBObjectDatabaseFile
public FODBObjectDatabaseFile(java.lang.String name)
throws java.io.IOException
FODBObjectDatabaseFile
public FODBObjectDatabaseFile(java.io.File file)
throws java.io.IOException
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 2006 OpenMobileIS. All Rights Reserved.