org.jboss.portal.common.transaction
Class Transactions

java.lang.Object
  extended by org.jboss.portal.common.transaction.Transactions

public class Transactions
extends java.lang.Object

Helper for managing transactions around a runnable.


Nested Class Summary
static interface Transactions.Runnable
           
 
Constructor Summary
Transactions()
           
 
Method Summary
static java.lang.Object requiresNew(javax.transaction.UserTransaction tx, Transactions.Runnable runnable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transactions

public Transactions()
Method Detail

requiresNew

public static java.lang.Object requiresNew(javax.transaction.UserTransaction tx,
                                           Transactions.Runnable runnable)
                                    throws NestedException,
                                           TransactionException
Throws:
NestedException
TransactionException