org.jboss.seam.transaction
Class Transaction

java.lang.Object
  extended by org.jboss.seam.transaction.Transaction

@Name(value="org.jboss.seam.transaction.transaction")
@Scope(value=EVENT)
@Install(precedence=0)
@BypassInterceptors
public class Transaction
extends java.lang.Object

Supports injection of a Seam UserTransaction object that wraps the current JTA transaction or EJB container managed transaction.

Author:
Mike Youngstrom, Gavin King

Field Summary
static java.lang.String TRANSACTION_FAILED
           
 
Constructor Summary
Transaction()
           
 
Method Summary
protected  UserTransaction createCMTTransaction()
           
protected  UserTransaction createNoTransaction()
           
protected  UserTransaction createUTTransaction()
           
 UserTransaction getTransaction()
           
protected  javax.transaction.UserTransaction getUserTransaction()
           
static UserTransaction instance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSACTION_FAILED

public static final java.lang.String TRANSACTION_FAILED
See Also:
Constant Field Values
Constructor Detail

Transaction

public Transaction()
Method Detail

instance

public static UserTransaction instance()

getTransaction

@Unwrap
public UserTransaction getTransaction()
                               throws javax.naming.NamingException
Throws:
javax.naming.NamingException

createNoTransaction

protected UserTransaction createNoTransaction()

createCMTTransaction

protected UserTransaction createCMTTransaction()
                                        throws javax.naming.NamingException
Throws:
javax.naming.NamingException

createUTTransaction

protected UserTransaction createUTTransaction()
                                       throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getUserTransaction

protected javax.transaction.UserTransaction getUserTransaction()
                                                        throws javax.naming.NamingException
Throws:
javax.naming.NamingException


Copyright © 2011 Seam Framework. All Rights Reserved.