suncertify.db.util
Class DbFile

java.lang.Object
  |
  +--suncertify.db.util.DbFile

public class DbFile
extends java.lang.Object

Simple class allowing exclusion control to the random access file

See Also:
RandomAccessFile

Constructor Summary
DbFile(java.lang.String fileName)
          Constructor for DbFile class.
 
Method Summary
 void closeDBFile()
          The method close the file
 void finalize()
          somebody should close the file.....
 java.io.RandomAccessFile getDBFile()
          The method gets exclusive access to the file, returns the data base access file
 void releaseDBFile()
          The method releases the exclusive access, so othres threads may use the file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbFile

public DbFile(java.lang.String fileName)
       throws java.io.FileNotFoundException
Constructor for DbFile class. It internally opens requested file

Throws:
java.io.FileNotFoundException - - thrown if file was not found
Method Detail

getDBFile

public java.io.RandomAccessFile getDBFile()
The method gets exclusive access to the file, returns the data base access file

Returns:
database file

releaseDBFile

public void releaseDBFile()
The method releases the exclusive access, so othres threads may use the file


closeDBFile

public void closeDBFile()
The method close the file


finalize

public void finalize()
somebody should close the file.....

Overrides:
finalize in class java.lang.Object
See Also:
java.lang.Object#finalize()