public interface TransactionManager
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Start the transaction.
|
void |
commit()
Commits the transaction
|
int |
getStatus()
Gets the transaction's status
|
Transaction |
getTransaction()
Returns the current transaction.
|
void |
resume(Transaction transaction)
Resume a transaction.
|
void |
rollback()
Rolls the transaction back
|
void |
setRollbackOnly()
Marks the transaction as rollback only.
|
void |
setTransactionTimeout(int seconds)
Sets the transaction's timeout.
|
Transaction |
suspend()
Suspends the transaction.
|
void setTransactionTimeout(int seconds)
throws SystemException
SystemExceptionTransaction getTransaction() throws SystemException
SystemExceptionint getStatus()
throws SystemException
SystemExceptionvoid begin()
throws NotSupportedException,
SystemException
NotSupportedExceptionSystemExceptionTransaction suspend() throws SystemException
SystemExceptionvoid resume(Transaction transaction) throws java.lang.IllegalStateException, InvalidTransactionException, SystemException
java.lang.IllegalStateExceptionInvalidTransactionExceptionSystemExceptionvoid setRollbackOnly()
throws java.lang.IllegalStateException,
SystemException
java.lang.IllegalStateExceptionSystemExceptionvoid commit()
throws java.lang.IllegalStateException,
RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
java.lang.SecurityException,
SystemException
java.lang.IllegalStateExceptionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionjava.lang.SecurityExceptionSystemExceptionvoid rollback()
throws java.lang.IllegalStateException,
java.lang.SecurityException,
SystemException
java.lang.IllegalStateExceptionjava.lang.SecurityExceptionSystemException