jrunx.tyrex.tm.impl
Class XAResourceHelper

java.lang.Object
  |
  +--jrunx.tyrex.tm.impl.XAResourceHelper
Direct Known Subclasses:
OracleXAResourceHelper

public class XAResourceHelper
extends java.lang.Object

This class describes various methods to help the transaction manipulate XA resources from database vendors that don't comply fully with the XA specification.


Constructor Summary
XAResourceHelper()
          Default constructor
 
Method Summary
 void endSuspended(javax.transaction.xa.XAResource xaResource, javax.transaction.xa.Xid xid)
          End work performed by the specified xa resource that has previously been suspended.
 javax.transaction.xa.Xid getXid(javax.transaction.xa.Xid xid)
          Create the xid for use with the XA resource from the specified xid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAResourceHelper

public XAResourceHelper()
Default constructor
Method Detail

getXid

public javax.transaction.xa.Xid getXid(javax.transaction.xa.Xid xid)
                                throws javax.transaction.xa.XAException
Create the xid for use with the XA resource from the specified xid.

The default implementation is to return the xid.

Parameters:
xid - The xid
Throws:
XAException - An error occured obtaining the xid

endSuspended

public void endSuspended(javax.transaction.xa.XAResource xaResource,
                         javax.transaction.xa.Xid xid)
                  throws javax.transaction.xa.XAException
End work performed by the specified xa resource that has previously been suspended.

The default implementation is to call end with the flag javax.transaction.xa.XAResource#TMSUCCESS

Parameters:
xaResource - The XA resource
Throws:
XAException - An error occured while ending the work performed by the XA resource


Copyright © 2002 Macromedia Corporation. All Rights Reserved.