org.objectweb.speedo.jca
Class SpeedoXAContext

java.lang.Object
  extended by org.objectweb.speedo.jca.SpeedoXAContext

public class SpeedoXAContext
extends java.lang.Object

It represents a XA context. A SpeedoXAContext is linked to a XA transaction represented by a XID. In a transaction the same POManagerItf is used.

Author:
S.Chassande-Barrioz

Field Summary
static byte ENDED
          Is a possible status of the SpeedoXAContext.
 POManagerItf pm
          Is the POManagerItf to use in the SpeedoXAContext (~transaction)
static byte PREPARED
          Is a possible status of the SpeedoXAContext.
static byte STARTED
          Is a possible status of the SpeedoXAContext.
 byte status
          is the status of the SpeedoXAContext.
 boolean synchroRegistred
          This boolean indicates if the used PM has been registered as a java.transaction.Synchronization on the transaction.
static byte UNKNOWN
          Is a possible status of the SpeedoXAContext.
 javax.transaction.xa.Xid xid
          The XID of the transaction
 
Constructor Summary
SpeedoXAContext(javax.transaction.xa.Xid xid)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static final byte UNKNOWN
Is a possible status of the SpeedoXAContext. It represents the initial state when the SpeedoXAContext is not yet linked to a transaction. Then the PM must not be used in this state.

See Also:
Constant Field Values

STARTED

public static final byte STARTED
Is a possible status of the SpeedoXAContext. The start() method has been called in order to demarcate the begin of the PM use.

See Also:
Constant Field Values

ENDED

public static final byte ENDED
Is a possible status of the SpeedoXAContext. The end() method has been called in order to demarcate the end of the PM use.

See Also:
Constant Field Values

PREPARED

public static final byte PREPARED
Is a possible status of the SpeedoXAContext. The prepare() method has been called in order to launch the first step of the two phase commit. The PM must not be used in this state.

See Also:
Constant Field Values

xid

public javax.transaction.xa.Xid xid
The XID of the transaction


pm

public POManagerItf pm
Is the POManagerItf to use in the SpeedoXAContext (~transaction)


status

public byte status
is the status of the SpeedoXAContext. The possible values are UNKNOWN, STARTED, ENDED or PREPARED.


synchroRegistred

public boolean synchroRegistred
This boolean indicates if the used PM has been registered as a java.transaction.Synchronization on the transaction.

Constructor Detail

SpeedoXAContext

public SpeedoXAContext(javax.transaction.xa.Xid xid)