|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.helidb.backend.SingleDatabaseFile
public class SingleDatabaseFile
This DatabaseFiles implementation contains a single
ReadWritableFile.
| Constructor Summary | |
|---|---|
SingleDatabaseFile(ReadWritableFile f)
Create a SingleDatabaseFile. |
|
| Method Summary | |
|---|---|
void |
delete()
Delete the database file(s). |
ReadWritableFile |
getFile()
Get the file. |
void |
replaceContents(DatabaseFiles f2)
Replace the contents of the database file(s) with the contents of the supplied file(s). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleDatabaseFile(ReadWritableFile f)
SingleDatabaseFile.
f - The file.| Method Detail |
|---|
public ReadWritableFile getFile()
public void replaceContents(DatabaseFiles f2)
DatabaseFiles
The contents of the database files should be replaced using the
ReadWritableFile.replaceContents(org.entityfs.ReadWritableFile)
method. A consequence of that is that the source files should be deleted.
replaceContents in interface DatabaseFilesf2 - The file(s) containing the data.public void delete()
DatabaseFiles
delete in interface DatabaseFiles
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||