org.objectweb.perseus.fos.api
Interface FosTransaction
- FosAccess
- FosTxContext
public interface FosTransaction
Defines the means to operate FOS transactions.
- S. Chassande-Barrioz, P. D?chamboux
void | begin() - Begins a FOS transaction with no DTP context.
|
void | begin(Xid xid) - Begins a FOS transaction with a DTP context.
|
void | commit() - Commits a FOS transaction.
|
boolean | isActive() - Specifies if this FOS transaction is active or not.
|
boolean | prepare() - Prepares a FOS transaction for commit.
|
void | rollback() - Roolbacks a FOS transaction.
|
begin
public void begin()
throws FosException
Begins a FOS transaction with no DTP context.
begin
public void begin(Xid xid)
throws FosException
Begins a FOS transaction with a DTP context.
xid
- The DTP identifier associated with this FOS transaction. It
is null if non XA runtime environment.
commit
public void commit()
throws FosException
Commits a FOS transaction.
isActive
public boolean isActive()
Specifies if this FOS transaction is active or not. true means that
it has begun but it has not been committed or rollbacked yet.
prepare
public boolean prepare()
throws FosException
Prepares a FOS transaction for commit.
- true if all objects used by this transaction was just read.
rollback
public void rollback()
throws FosException
Roolbacks a FOS transaction.
Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.