org.jboss.tm
Class TransactionDemarcationSupport

java.lang.Object
  extended by org.jboss.tm.TransactionDemarcationSupport

public class TransactionDemarcationSupport
extends Object

A simple helper for transaction demarcation.

Version:
$Revision: 57208 $
Author:
Adrian Brock

Constructor Summary
TransactionDemarcationSupport()
           
 
Method Summary
static void resumeAnyTransaction(Transaction tx)
          Resume any transaction
static Transaction suspendAnyTransaction()
          Suspend any transaction associated with the thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionDemarcationSupport

public TransactionDemarcationSupport()
Method Detail

suspendAnyTransaction

public static Transaction suspendAnyTransaction()
Suspend any transaction associated with the thread

Returns:
any suspended transaction or null if there was no transaction

resumeAnyTransaction

public static void resumeAnyTransaction(Transaction tx)
Resume any transaction

Parameters:
tx - the transaction to resume


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.