org.objectweb.jonas.resource.LocalXAWrapper Class Reference

List of all members.

Public Member Functions

void commit (Xid xid, boolean flag) throws XAException
void end (Xid xid, int i) throws XAException
void forget (Xid xid) throws XAException
int getTransactionTimeout () throws XAException
boolean isSameRM (XAResource xaresource) throws XAException
int prepare (Xid xid) throws XAException
Xid[] recover (int i) throws XAException
void rollback (Xid xid) throws XAException
boolean setTransactionTimeout (int i) throws XAException
void start (Xid xid, int i) throws XAException

Protected Attributes

boolean isInTransaction
LocalTransaction localTrans = null

Detailed Description

A LocalXAWrapper that intercepts the XA calls for an RAR that only supports LocalTransactions and translates them to the appropriate Local Transaction methods.

Author:
Eric.Hardesty@bull.com

Definition at line 46 of file LocalXAWrapper.java.


Member Function Documentation

void org.objectweb.jonas.resource.LocalXAWrapper.commit Xid  xid,
boolean  flag
throws XAException
 

Commit the localTransaction, the params aren't used for a local transaction.

Parameters:
xid transaction xid
flag for interface compliance
Exceptions:
XAException Exception trying to commit local transaction

Definition at line 79 of file LocalXAWrapper.java.

References org.objectweb.jonas.resource.LocalXAWrapper.isInTransaction, and org.objectweb.jonas.resource.LocalXAWrapper.localTrans.

void org.objectweb.jonas.resource.LocalXAWrapper.end Xid  xid,
int  i
throws XAException
 

No method to map for a local transaction.

Parameters:
xid transaction xid

Definition at line 102 of file LocalXAWrapper.java.

References org.objectweb.jonas.resource.LocalXAWrapper.isInTransaction.

void org.objectweb.jonas.resource.LocalXAWrapper.forget Xid  xid  )  throws XAException
 

No method to map for a local transaction.

Parameters:
xid transaction xid

Definition at line 118 of file LocalXAWrapper.java.

int org.objectweb.jonas.resource.LocalXAWrapper.getTransactionTimeout  )  throws XAException
 

No method to map for a local transaction, just return no timeout.

Definition at line 127 of file LocalXAWrapper.java.

boolean org.objectweb.jonas.resource.LocalXAWrapper.isSameRM XAResource  xaresource  )  throws XAException
 

Determine if the wrapper instance is the same as the wrapper instance being passed in

Parameters:
xaresource An XAResource object
Returns:
True if same RM instance, otherwise false.
Exceptions:
XAException no throw in this implementation

Definition at line 141 of file LocalXAWrapper.java.

int org.objectweb.jonas.resource.LocalXAWrapper.prepare Xid  xid  )  throws XAException
 

No method to map for a local transaction, just return XA_OK.

Parameters:
xid transaction xid

Definition at line 157 of file LocalXAWrapper.java.

Xid [] org.objectweb.jonas.resource.LocalXAWrapper.recover int  i  )  throws XAException
 

No method to map for a local transaction.

Definition at line 166 of file LocalXAWrapper.java.

void org.objectweb.jonas.resource.LocalXAWrapper.rollback Xid  xid  )  throws XAException
 

Rollback the localTransaction, the param isn't used for a local transaction.

Parameters:
xid transaction xid
Exceptions:
XAException Exception trying to rollback local transaction

Definition at line 179 of file LocalXAWrapper.java.

References org.objectweb.jonas.resource.LocalXAWrapper.isInTransaction, and org.objectweb.jonas.resource.LocalXAWrapper.localTrans.

boolean org.objectweb.jonas.resource.LocalXAWrapper.setTransactionTimeout int  i  )  throws XAException
 

No method to map for a local transaction, just return no timeout.

Definition at line 202 of file LocalXAWrapper.java.

void org.objectweb.jonas.resource.LocalXAWrapper.start Xid  xid,
int  i
throws XAException
 

Only start a local transaction if a new transaction is being attempted, just return if joining or resuming.

Parameters:
xid transaction xid
Exceptions:
XAException Transaction already started or error starting a new local transaction

Definition at line 216 of file LocalXAWrapper.java.

References org.objectweb.jonas.resource.LocalXAWrapper.isInTransaction, and org.objectweb.jonas.resource.LocalXAWrapper.localTrans.


Member Data Documentation

boolean org.objectweb.jonas.resource.LocalXAWrapper.isInTransaction [protected]
 

The boolean to determine if in a current transaction

Definition at line 57 of file LocalXAWrapper.java.

Referenced by org.objectweb.jonas.resource.LocalXAWrapper.commit(), org.objectweb.jonas.resource.LocalXAWrapper.end(), org.objectweb.jonas.resource.LocalXAWrapper.rollback(), and org.objectweb.jonas.resource.LocalXAWrapper.start().

LocalTransaction org.objectweb.jonas.resource.LocalXAWrapper.localTrans = null [protected]
 

The LocalTransaction object to make the begin(), commit(), and rollback() calls.

Definition at line 63 of file LocalXAWrapper.java.

Referenced by org.objectweb.jonas.resource.LocalXAWrapper.commit(), org.objectweb.jonas.resource.LocalXAWrapper.rollback(), and org.objectweb.jonas.resource.LocalXAWrapper.start().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:22 2005 for JOnAS by  doxygen 1.3.9.1