Class BaseTransaction
java.lang.Object
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction
- Direct Known Subclasses:
TransactionManagerImple
,UserTransactionImple
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
void
commit()
We will never throw a HeuristicRollbackException because if we get a HeuristicRollback from a resource, and can successfully rollback the other resources, this is then the same as having simply been forced to rollback the transaction during phase 1.int
int
void
rollback()
void
void
setTransactionTimeout
(int seconds) toString()
static <T> Future
<T>
-
Constructor Details
-
BaseTransaction
protected BaseTransaction()
-
-
Method Details
-
begin
public void begin() throws jakarta.transaction.NotSupportedException, jakarta.transaction.SystemException- Throws:
jakarta.transaction.NotSupportedException
jakarta.transaction.SystemException
-
commit
public void commit() throws jakarta.transaction.RollbackException, jakarta.transaction.HeuristicMixedException, jakarta.transaction.HeuristicRollbackException, SecurityException, IllegalStateException, jakarta.transaction.SystemExceptionWe will never throw a HeuristicRollbackException because if we get a HeuristicRollback from a resource, and can successfully rollback the other resources, this is then the same as having simply been forced to rollback the transaction during phase 1. The OTS interfaces do not allow a differentiation.- Throws:
jakarta.transaction.RollbackException
jakarta.transaction.HeuristicMixedException
jakarta.transaction.HeuristicRollbackException
SecurityException
IllegalStateException
jakarta.transaction.SystemException
-
rollback
public void rollback() throws IllegalStateException, SecurityException, jakarta.transaction.SystemException- Throws:
IllegalStateException
SecurityException
jakarta.transaction.SystemException
-
setRollbackOnly
- Throws:
IllegalStateException
jakarta.transaction.SystemException
-
getStatus
public int getStatus() throws jakarta.transaction.SystemException- Throws:
jakarta.transaction.SystemException
-
setTransactionTimeout
public void setTransactionTimeout(int seconds) throws jakarta.transaction.SystemException - Throws:
jakarta.transaction.SystemException
-
getTimeout
public int getTimeout() throws jakarta.transaction.SystemException- Throws:
jakarta.transaction.SystemException
-
toString
-
createSubordinate
public TransactionImple createSubordinate() throws jakarta.transaction.NotSupportedException, jakarta.transaction.SystemException- Throws:
jakarta.transaction.NotSupportedException
jakarta.transaction.SystemException
-
commitAsync
-
wrap
-