|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--suncertify.db.util.DbFileGuard
Simple class allowing exclusion control to the random access file
RandomAccessFile
Constructor Summary | |
DbFileGuard(java.lang.String fileName)
Constructor for DbFileGuard class. |
Method Summary | |
void |
closeDBFile()
The method close the file |
void |
finalize()
somebody should close the file at the end, do not relay on this as nobody knows when it will be called |
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 |
public DbFileGuard(java.lang.String fileName) throws java.io.FileNotFoundException
java.io.FileNotFoundException
- - thrown if file was not foundMethod Detail |
public java.io.RandomAccessFile getDBFile()
public void releaseDBFile()
public void closeDBFile()
public void finalize()
finalize
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |