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.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TxHelper
public TxHelper()
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.