BEA Systems, Inc.

WebLogic Server 6.0sp2 API Reference

weblogic.transaction
Class TxHelper

java.lang.Object
  |
  +--weblogic.transaction.TxHelper

public class TxHelper
extends java.lang.Object

This class is a convenience wrapper for gaining access to the current Transaction, UserTransaction, and TransactionManager on both client and server processes.

Author:
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
TxHelper()
           
 
Method Summary
static Transaction getTransaction()
          Gets the transaction associated with this thread.
static TransactionManager getTransactionManager()
          Gets a reference to the singleton TransactionManager object.
static javax.transaction.UserTransaction getUserTransaction()
          Gets the reference to the singleton UserTransaction object.
static java.lang.String status2String(int status)
          Translates javax.transaction.Status constants to English strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TxHelper

public TxHelper()
Method Detail

getTransaction

public static Transaction getTransaction()
Gets the transaction associated with this thread.

Returns:
null (if there is no associated transaction or if an exception was raised)

getUserTransaction

public static javax.transaction.UserTransaction getUserTransaction()
Gets the reference to the singleton UserTransaction object.

getTransactionManager

public static TransactionManager getTransactionManager()
Gets a reference to the singleton TransactionManager object.

status2String

public static java.lang.String status2String(int status)
Translates javax.transaction.Status constants to English strings.

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs60