|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.helidb.backend.SingleAndProxiedDatabaseFile
public class SingleAndProxiedDatabaseFile
This DatabaseFiles implementation contains a single
ReadWritableFile and a proxied DatabaseFiles object.
| Constructor Summary | |
|---|---|
SingleAndProxiedDatabaseFile(DatabaseFiles proxied,
ReadWritableFile f)
Create a SingleAndProxiedDatabaseFile object. |
|
| Method Summary | |
|---|---|
void |
delete()
Delete the database file(s). |
ReadWritableFile |
getFile()
Get the file. |
DatabaseFiles |
getProxied()
Get the proxied DatabaseFiles object. |
void |
replaceContents(DatabaseFiles f)
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 SingleAndProxiedDatabaseFile(DatabaseFiles proxied,
ReadWritableFile f)
SingleAndProxiedDatabaseFile object.
proxied - The proxied DatabaseFiles object.f - The ReadWritableFile.| Method Detail |
|---|
public ReadWritableFile getFile()
public DatabaseFiles getProxied()
DatabaseFiles object.
DatabaseFiles object.public void delete()
DatabaseFiles
delete in interface DatabaseFilespublic void replaceContents(DatabaseFiles f)
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 DatabaseFilesf - The file(s) containing the data.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||