|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.perseus.fos.lib.FosTxContext
Method Summary | |
void |
begin()
Begins a FOS transaction with no DTP context. |
void |
begin(javax.transaction.xa.Xid xid)
Begins a FOS transaction with a DTP context. |
void |
commit()
Commits a FOS transaction. |
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. |
boolean |
isActive()
Specifies if this FOS transaction is active or not. |
boolean |
prepare()
Prepares a FOS transaction to commit. |
void |
read(java.lang.String dirof,
java.lang.String id,
FosStructure fs,
FosAccess conn,
java.lang.Object ctxt)
|
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. |
void |
rollback()
Roolbacks a FOS transaction. |
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,
FosAccess conn,
java.lang.Object ctxt)
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void begin() throws FosException
begin
in interface FosTransaction
FosException
public void begin(javax.transaction.xa.Xid xid) throws FosException
begin
in interface FosTransaction
xid
- The DTP identifier associated with this FOS transaction. It
is null if non XA runtime environment.
FosException
public boolean isActive()
isActive
in interface FosTransaction
public boolean prepare() throws FosException
prepare
in interface FosTransaction
FosException
public void commit() throws FosException
commit
in interface FosTransaction
FosException
public void rollback() throws FosException
rollback
in interface FosTransaction
FosException
public boolean exist(java.lang.String dirof, java.lang.String id) throws FosException
exist
in interface FosAccess
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
existDir
in interface FosAccess
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
read
in interface FosAccess
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 void read(java.lang.String dirof, java.lang.String id, FosStructure fs, FosAccess conn, java.lang.Object ctxt) throws FosException
FosException
public void delete(java.lang.String dirof, java.lang.String id) throws FosException
delete
in interface FosAccess
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
deleteDir
in interface FosAccess
dirof
- The directory under dbDir to be deleted.
FosException
public java.util.Iterator scan(java.lang.String dirof) throws FosException
scan
in interface FosAccess
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
write
in interface FosAccess
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
public void write(java.lang.String dirof, java.lang.String id, FosStructure fs, FosAccess conn, java.lang.Object ctxt) throws FosException
FosException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |