|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the means to manipulate transactional files for storing data objects. These data objects are stored into files (one file per data object). There are all stored into a root directory "dbdir". They can be stored directly under it or into a sub-directory "dirof" of it (at any depth).
Method Summary | |
void |
delete(java.lang.String dirof,
java.lang.String id)
Deletes the file associated with a persistent object. |
void |
deleteDir(java.lang.String dirof)
Deletes a directory that stores persistent objects along with all object files stored under it. |
boolean |
exist(java.lang.String dirof,
java.lang.String id)
Tests if the file associated to a persistent object exists. |
boolean |
existDir(java.lang.String dirof)
Tests if a directory that stores persistent objects exists. |
void |
read(java.lang.String dirof,
java.lang.String id,
FosStructure fs,
java.lang.Object ctxt)
Reads the content of a persistent object from a file. |
java.util.Iterator |
scan(java.lang.String dirof)
Gets an iterator in order to iterate over the names of the data object files stored into that sub-directory. |
void |
write(java.lang.String dirof,
java.lang.String id,
FosStructure fs,
java.lang.Object ctxt)
Writes the content of a persistent object to a file. |
Method Detail |
public void delete(java.lang.String dirof, java.lang.String id) throws FosException
dirof
- The directory under dbDir where the deleted file is
located.id
- The name of the file to delete (corresponding to the object
identifier).
FosException
public void deleteDir(java.lang.String dirof) throws FosException
dirof
- The directory under dbDir to be deleted.
FosException
public boolean exist(java.lang.String dirof, java.lang.String id) throws FosException
dirof
- The directory under dbDir where the file should be located.id
- The name of the file to test (corresponding to the object
identifier).
FosException
public boolean existDir(java.lang.String dirof) throws FosException
dirof
- The directory under dbDir to test the existence.
FosException
public void read(java.lang.String dirof, java.lang.String id, FosStructure fs, java.lang.Object ctxt) throws FosException
dirof
- The directory under dbDir where the read file is located.id
- The name of the file to read (corresponding to the object
identifier).fs
- The user object for actually reading the file.
FosException
public java.util.Iterator scan(java.lang.String dirof) throws FosException
dirof
- The sub-directory from which to scan the data
object file names.
FosException
public void write(java.lang.String dirof, java.lang.String id, FosStructure fs, java.lang.Object ctxt) throws FosException
dirof
- The directory under dbDir where the written file is
located.id
- The name of the file to write (corresponding to the object
identifier).fs
- The user object for actually writing the file.
FosException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |