JavaScript is disabled on your browser.
Method Summary
All Methods Instance Methods Abstract Methods
void
Create a new transaction and associate it with the current thread.
void
Complete the transaction : either commit or rollback.
long
Get the number of active transactions (i.e.
boolean
void
Modify the transaction associated with the current thread such that
the only possible outcome of the transaction is to roll back the
transaction.
Method Details
setRollbackOnly
Modify the transaction associated with the current thread such that
the only possible outcome of the transaction is to roll back the
transaction.
Throws:
IllegalStateException - Thrown if the current thread is
not associated with a transaction.
STransactionException - Thrown if the transaction manager
encounters an unexpected error condition.
getNumberOfActiveTransactions
long getNumberOfActiveTransactions ()
Get the number of active transactions (i.e. transactions that opened but not yet completed or rolledback).
A transaction that was just mark as "rollbackOnly" is considered as an active one.
Returns:
the number of active transactions