Class TransactionManagerImple
java.lang.Object
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple
- All Implemented Interfaces:
jakarta.transaction.TransactionManager
,ObjectFactory
public class TransactionManagerImple
extends BaseTransaction
implements jakarta.transaction.TransactionManager, ObjectFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetObjectInstance
(Object obj, Name name, Context nameCtx, Hashtable environment) Creates a TransactionManageImple from the given information.jakarta.transaction.Transaction
void
resume
(jakarta.transaction.Transaction which) Unlike the OTS, if we are already associated with a transaction then we cannot call resume.jakarta.transaction.Transaction
suspend()
Methods inherited from class com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction
begin, commit, commitAsync, createSubordinate, getStatus, getTimeout, rollback, setRollbackOnly, setTransactionTimeout, toString, wrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface jakarta.transaction.TransactionManager
begin, commit, getStatus, rollback, setRollbackOnly, setTransactionTimeout
-
Constructor Details
-
TransactionManagerImple
public TransactionManagerImple()
-
-
Method Details
-
getTransaction
public jakarta.transaction.Transaction getTransaction() throws jakarta.transaction.SystemException- Specified by:
getTransaction
in interfacejakarta.transaction.TransactionManager
- Throws:
jakarta.transaction.SystemException
-
suspend
public jakarta.transaction.Transaction suspend() throws jakarta.transaction.SystemException- Specified by:
suspend
in interfacejakarta.transaction.TransactionManager
- Returns:
- the suspended transaction.
- Throws:
jakarta.transaction.SystemException
-
resume
public void resume(jakarta.transaction.Transaction which) throws jakarta.transaction.InvalidTransactionException, IllegalStateException, jakarta.transaction.SystemException Unlike the OTS, if we are already associated with a transaction then we cannot call resume.- Specified by:
resume
in interfacejakarta.transaction.TransactionManager
- Throws:
jakarta.transaction.InvalidTransactionException
IllegalStateException
jakarta.transaction.SystemException
-
getObjectInstance
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception Creates a TransactionManageImple from the given information.- Specified by:
getObjectInstance
in interfaceObjectFactory
- Parameters:
obj
-name
-nameCtx
-environment
-- Returns:
- the instance of the transaction manager
- Throws:
Exception
-