Package com.arjuna.ats.jbossatx
Class BaseTransactionManagerDelegate
java.lang.Object
com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate
- All Implemented Interfaces:
jakarta.transaction.TransactionManager,org.jboss.tm.listener.TransactionListenerRegistry,org.jboss.tm.TransactionLocalDelegate,org.jboss.tm.TransactionTimeoutConfiguration
- Direct Known Subclasses:
TransactionManagerDelegate,TransactionManagerDelegate
@Deprecated
public abstract class BaseTransactionManagerDelegate
extends Object
implements jakarta.transaction.TransactionManager, org.jboss.tm.TransactionLocalDelegate, org.jboss.tm.TransactionTimeoutConfiguration, org.jboss.tm.listener.TransactionListenerRegistry
Deprecated.
Delegate for JBoss TransactionManager/TransactionLocalDelegate.
- Author:
- kevin
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseTransactionManagerDelegate(jakarta.transaction.TransactionManager transactionManager) Deprecated.Construct the delegate using the specified transaction manager. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(jakarta.transaction.Transaction transaction, org.jboss.tm.listener.TransactionListener listener, EnumSet<org.jboss.tm.listener.EventType> types) Deprecated.register a listener for transaction related events that effect the current threadvoidbegin()Deprecated.Begin a transaction and associate it with the current thread.voidcommit()Deprecated.Commit the current transaction and disassociate from the thread.booleancontainsValue(org.jboss.tm.TransactionLocal transactionLocal, jakarta.transaction.Transaction transaction) Deprecated.Does the specified transaction contain a value for the transaction local.intDeprecated.Get the transaction status.jakarta.transaction.TransactionDeprecated.Get the transaction associated with the thread.getValue(org.jboss.tm.TransactionLocal transactionLocal, jakarta.transaction.Transaction transaction) Deprecated.Get value of the transaction local in the specified transaction.voidlock(org.jboss.tm.TransactionLocal local, jakarta.transaction.Transaction transaction) Deprecated.Lock the transaction local in the context of this transaction.voidresume(jakarta.transaction.Transaction transaction) Deprecated.Resume the specified transaction.voidrollback()Deprecated.Rollback the current transaction and disassociate from the thread.voidDeprecated.Set rollback only on the current transaction.voidsetTransactionTimeout(int timeout) Deprecated.Set the transaction timeout on the current thread.voidstoreValue(org.jboss.tm.TransactionLocal transactionLocal, jakarta.transaction.Transaction transaction, Object value) Deprecated.Store the value of the transaction local in the specified transaction.jakarta.transaction.Transactionsuspend()Deprecated.Suspend the current transaction.voidunlock(org.jboss.tm.TransactionLocal local, jakarta.transaction.Transaction transaction) Deprecated.Unlock the transaction local in the context of this transactionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.tm.TransactionTimeoutConfiguration
getTimeLeftBeforeTransactionTimeout, getTransactionTimeout
-
Constructor Details
-
BaseTransactionManagerDelegate
protected BaseTransactionManagerDelegate(jakarta.transaction.TransactionManager transactionManager) Deprecated.Construct the delegate using the specified transaction manager.- Parameters:
transactionManager- The delegate transaction manager.
-
-
Method Details
-
begin
public void begin() throws jakarta.transaction.NotSupportedException, jakarta.transaction.SystemExceptionDeprecated.Begin a transaction and associate it with the current thread.- Specified by:
beginin interfacejakarta.transaction.TransactionManager- Throws:
jakarta.transaction.NotSupportedExceptionjakarta.transaction.SystemException
-
commit
public void commit() throws jakarta.transaction.RollbackException, jakarta.transaction.HeuristicMixedException, jakarta.transaction.HeuristicRollbackException, SecurityException, IllegalStateException, jakarta.transaction.SystemExceptionDeprecated.Commit the current transaction and disassociate from the thread.- Specified by:
commitin interfacejakarta.transaction.TransactionManager- Throws:
jakarta.transaction.RollbackExceptionjakarta.transaction.HeuristicMixedExceptionjakarta.transaction.HeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionjakarta.transaction.SystemException
-
getStatus
public int getStatus() throws jakarta.transaction.SystemExceptionDeprecated.Get the transaction status.- Specified by:
getStatusin interfacejakarta.transaction.TransactionManager- Returns:
- the transaction status.
- Throws:
jakarta.transaction.SystemException
-
getTransaction
public jakarta.transaction.Transaction getTransaction() throws jakarta.transaction.SystemExceptionDeprecated.Get the transaction associated with the thread.- Specified by:
getTransactionin interfacejakarta.transaction.TransactionManager- Returns:
- the transaction or null if none associated.
- Throws:
jakarta.transaction.SystemException
-
resume
public void resume(jakarta.transaction.Transaction transaction) throws jakarta.transaction.InvalidTransactionException, IllegalStateException, jakarta.transaction.SystemException Deprecated.Resume the specified transaction.- Specified by:
resumein interfacejakarta.transaction.TransactionManager- Parameters:
transaction- The transaction to resume.- Throws:
jakarta.transaction.InvalidTransactionExceptionIllegalStateExceptionjakarta.transaction.SystemException
-
rollback
public void rollback() throws IllegalStateException, SecurityException, jakarta.transaction.SystemExceptionDeprecated.Rollback the current transaction and disassociate from the thread.- Specified by:
rollbackin interfacejakarta.transaction.TransactionManager- Throws:
IllegalStateExceptionSecurityExceptionjakarta.transaction.SystemException
-
setRollbackOnly
Deprecated.Set rollback only on the current transaction.- Specified by:
setRollbackOnlyin interfacejakarta.transaction.TransactionManager- Throws:
IllegalStateExceptionjakarta.transaction.SystemException
-
setTransactionTimeout
public void setTransactionTimeout(int timeout) throws jakarta.transaction.SystemException Deprecated.Set the transaction timeout on the current thread.- Specified by:
setTransactionTimeoutin interfacejakarta.transaction.TransactionManager- Parameters:
timeout- The transaction timeout.- Throws:
jakarta.transaction.SystemException
-
addListener
public void addListener(jakarta.transaction.Transaction transaction, org.jboss.tm.listener.TransactionListener listener, EnumSet<org.jboss.tm.listener.EventType> types) throws org.jboss.tm.listener.TransactionTypeNotSupported Deprecated.register a listener for transaction related events that effect the current thread- Specified by:
addListenerin interfaceorg.jboss.tm.listener.TransactionListenerRegistry- Parameters:
listener- the callback for event notifications- Throws:
org.jboss.tm.listener.TransactionTypeNotSupported
-
suspend
public jakarta.transaction.Transaction suspend() throws jakarta.transaction.SystemExceptionDeprecated.Suspend the current transaction.- Specified by:
suspendin interfacejakarta.transaction.TransactionManager- Returns:
- The suspended transaction.
- Throws:
jakarta.transaction.SystemException
-
containsValue
public boolean containsValue(org.jboss.tm.TransactionLocal transactionLocal, jakarta.transaction.Transaction transaction) Deprecated.Does the specified transaction contain a value for the transaction local.- Specified by:
containsValuein interfaceorg.jboss.tm.TransactionLocalDelegate- Parameters:
transactionLocal- The associated transaction local.transaction- The associated transaction.- Returns:
- true if a value exists within the specified transaction, false otherwise.
-
getValue
public Object getValue(org.jboss.tm.TransactionLocal transactionLocal, jakarta.transaction.Transaction transaction) Deprecated.Get value of the transaction local in the specified transaction.- Specified by:
getValuein interfaceorg.jboss.tm.TransactionLocalDelegate- Parameters:
transactionLocal- The associated transaction local.transaction- The associated transaction.- Returns:
- The value of the transaction local.
-
storeValue
public void storeValue(org.jboss.tm.TransactionLocal transactionLocal, jakarta.transaction.Transaction transaction, Object value) Deprecated.Store the value of the transaction local in the specified transaction.- Specified by:
storeValuein interfaceorg.jboss.tm.TransactionLocalDelegate- Parameters:
transactionLocal- The associated transaction local.transaction- The associated transaction.value- The value of the transaction local.
-
lock
public void lock(org.jboss.tm.TransactionLocal local, jakarta.transaction.Transaction transaction) throws InterruptedException Deprecated.Lock the transaction local in the context of this transaction.- Specified by:
lockin interfaceorg.jboss.tm.TransactionLocalDelegate- Throws:
IllegalStateException- if the transaction is not activeInterruptedException- if the thread is interrupted
-
unlock
public void unlock(org.jboss.tm.TransactionLocal local, jakarta.transaction.Transaction transaction) Deprecated.Unlock the transaction local in the context of this transaction- Specified by:
unlockin interfaceorg.jboss.tm.TransactionLocalDelegate
-