org.jboss.jca.core.connectionmanager.listener
Class TxConnectionListener.TransactionSynchronization

java.lang.Object
  extended by org.jboss.jca.core.connectionmanager.listener.TxConnectionListener.TransactionSynchronization
All Implemented Interfaces:
Synchronization
Enclosing class:
TxConnectionListener

public class TxConnectionListener.TransactionSynchronization
extends Object
implements Synchronization

Transaction sync. class. Please note this class has public access is for test purposes only. Except for test purposes it should be considered private! Don't use it outside enclosing class or testcase!


Field Summary
protected  Transaction currentTx
          Transaction
 
Constructor Summary
TxConnectionListener.TransactionSynchronization(Transaction tx, boolean trackByTx)
          Create a new TransactionSynchronization.transaction
 
Method Summary
 void afterCompletion(int status)
          
 void beforeCompletion()
          
 void checkEnlisted()
          Get the result of the enlistment.
 boolean enlist()
          Enlist the resource
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

currentTx

protected final Transaction currentTx
Transaction

Constructor Detail

TxConnectionListener.TransactionSynchronization

public TxConnectionListener.TransactionSynchronization(Transaction tx,
                                                       boolean trackByTx)
Create a new TransactionSynchronization.transaction

Parameters:
tx - transaction
trackByTx - whether this is track by connection
Method Detail

checkEnlisted

public void checkEnlisted()
                   throws SystemException
Get the result of the enlistment.

Throws:
SystemException - for any error

enlist

public boolean enlist()
Enlist the resource

Returns:
true when enlisted, false otherwise

beforeCompletion

public void beforeCompletion()

Specified by:
beforeCompletion in interface Synchronization

afterCompletion

public void afterCompletion(int status)

Specified by:
afterCompletion in interface Synchronization

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)