|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3) Part Number E41849-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object weblogic.transaction.TransactionHelper
public abstract class TransactionHelper
Helper for managing transactions required by higher-level functionality. This class is a convenience wrapper for gaining access to objects and resources related to the transaction manager, on both client and server processes.
Constructor Summary | |
---|---|
TransactionHelper()
|
Method Summary | |
---|---|
static InterposedTransactionManager |
getClientInterposedTransactionManager(Context initialContext,
String serverName)
|
static InterposedTransactionManager |
getClientInterposedTransactionManagerThrowsOnException(Context initialContext,
String serverName)
|
Transaction |
getTransaction()
Gets the transaction associated with this thread. |
static TransactionHelper |
getTransactionHelper()
Get the TransactionHelper singleton. |
abstract ClientTransactionManager |
getTransactionManager()
Return an implementation of TransactionManager suitable for use in the current client. |
abstract UserTransaction |
getUserTransaction()
Return an implementation of UserTransaction suitable for use in the current client. |
static TransactionHelper |
popTransactionHelper()
Pop the TransactionHelper singleton. |
static void |
pushTransactionHelper(TransactionHelper helper)
Push the TransactionHelper singleton. |
static void |
setTransactionHelper(TransactionHelper helper)
Set the TransactionHelper singleton. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionHelper()
Method Detail |
---|
public static TransactionHelper getTransactionHelper()
public static void setTransactionHelper(TransactionHelper helper)
helper
- - a suitable TransactionHelper implementation for
client or server.public static void pushTransactionHelper(TransactionHelper helper)
helper
- - a suitable TransactionHelper implementation for
client or server.public static TransactionHelper popTransactionHelper() throws EmptyStackException
EmptyStackException
public abstract UserTransaction getUserTransaction()
UserTransaction
public abstract ClientTransactionManager getTransactionManager()
TransactionManager
public Transaction getTransaction()
TransactionManager.getTransaction()
public static InterposedTransactionManager getClientInterposedTransactionManager(Context initialContext, String serverName)
public static InterposedTransactionManager getClientInterposedTransactionManagerThrowsOnException(Context initialContext, String serverName) throws Exception
Exception
|
Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3) Part Number E41849-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |