com.scooterframework.transaction
Class TransactionUtil

java.lang.Object
  extended by com.scooterframework.transaction.TransactionUtil

public class TransactionUtil
extends java.lang.Object

TransactionUtil class provides convenient methods about transaction.


Constructor Summary
TransactionUtil()
           
 
Method Summary
static boolean isUserTransactionActive(javax.transaction.UserTransaction ut)
           
static javax.transaction.UserTransaction lookupUserTransaction()
          Looks up or creates a UserTransaction instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionUtil

public TransactionUtil()
Method Detail

isUserTransactionActive

public static boolean isUserTransactionActive(javax.transaction.UserTransaction ut)

lookupUserTransaction

public static javax.transaction.UserTransaction lookupUserTransaction()
Looks up or creates a UserTransaction instance.

Returns:
an instance of UserTransaction
Throws:
TransactionException - if not found or not able to create a UserTransaction instance.