org.objectweb.jonas.jdbc.XAResourceImpl Class Reference

List of all members.

Public Member Functions

 XAResourceImpl (ManagedConnectionImpl mc, XAResource xares)
void commit (Xid xid, boolean onePhase) throws XAException
void end (Xid xid, int flags) throws XAException
void forget (Xid xid) throws XAException
int getTransactionTimeout () throws XAException
boolean isSameRM (XAResource xaRes) throws XAException
int prepare (Xid xid) throws XAException
Xid[] recover (int flag) throws XAException
void rollback (Xid xid) throws XAException
boolean setTransactionTimeout (int seconds) throws XAException
void start (Xid xid, int flags) throws XAException

Detailed Description

This is an implementation of XAResource used for transaction mgmt with a JDBC driver. The standard JDBC drivers don't support real XA, so the prepare will just return OK and work will be done in the commit/rollback.

Definition at line 43 of file XAResourceImpl.java.


Constructor & Destructor Documentation

org.objectweb.jonas.jdbc.XAResourceImpl.XAResourceImpl ManagedConnectionImpl  mc,
XAResource  xares
 

XAResourceImpl constructor

Parameters:
mc ManagedConnectionImpl used with this object
xares XAResource from DB if supported

Definition at line 60 of file XAResourceImpl.java.


Member Function Documentation

void org.objectweb.jonas.jdbc.XAResourceImpl.commit Xid  xid,
boolean  onePhase
throws XAException
 

Commit the global transaction specified by xid.

Definition at line 68 of file XAResourceImpl.java.

void org.objectweb.jonas.jdbc.XAResourceImpl.end Xid  xid,
int  flags
throws XAException
 

Ends the transaction

Definition at line 116 of file XAResourceImpl.java.

void org.objectweb.jonas.jdbc.XAResourceImpl.forget Xid  xid  )  throws XAException
 

Need to forget the heuristically completed Xid

Definition at line 134 of file XAResourceImpl.java.

int org.objectweb.jonas.jdbc.XAResourceImpl.getTransactionTimeout  )  throws XAException
 

Get the current transaction timeout for this XAResource

Definition at line 144 of file XAResourceImpl.java.

boolean org.objectweb.jonas.jdbc.XAResourceImpl.isSameRM XAResource  xaRes  )  throws XAException
 

Determine if the resource manager instance is the same as the resouce manager being passed in

Definition at line 155 of file XAResourceImpl.java.

References org.objectweb.jonas.jdbc.XAResourceImpl.mc.

int org.objectweb.jonas.jdbc.XAResourceImpl.prepare Xid  xid  )  throws XAException
 

Prepare the Xid for a transaction commit

Definition at line 175 of file XAResourceImpl.java.

Xid [] org.objectweb.jonas.jdbc.XAResourceImpl.recover int  flag  )  throws XAException
 

Obtain a list of prepared transaction branches from a resource manager.

Definition at line 197 of file XAResourceImpl.java.

void org.objectweb.jonas.jdbc.XAResourceImpl.rollback Xid  xid  )  throws XAException
 

Roll back work done on the Xid

Definition at line 209 of file XAResourceImpl.java.

boolean org.objectweb.jonas.jdbc.XAResourceImpl.setTransactionTimeout int  seconds  )  throws XAException
 

Set the current transaction timeout value for this XAResource

Definition at line 256 of file XAResourceImpl.java.

void org.objectweb.jonas.jdbc.XAResourceImpl.start Xid  xid,
int  flags
throws XAException
 

Start work on this Xid. If TMJOIN is on, then join an existing transaction already started by the RM.

Definition at line 267 of file XAResourceImpl.java.


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