public class SimpleUserTransaction extends Object implements UserTransaction
| Constructor and Description |
|---|
SimpleUserTransaction(UserTransactionCallback aCallback,
TransactionResource<?>... aResources)
Constructs the transaction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
int |
getStatus() |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int aSeconds) |
public SimpleUserTransaction(UserTransactionCallback aCallback, TransactionResource<?>... aResources)
aCallback - Callback to use.aResources - Resources to use.public void begin()
throws NotSupportedException,
SystemException
begin in interface UserTransactionNotSupportedExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface UserTransactionIllegalStateExceptionSecurityExceptionSystemExceptionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface UserTransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface UserTransactionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface UserTransactionIllegalStateExceptionSystemExceptionpublic void setTransactionTimeout(int aSeconds)
throws SystemException
setTransactionTimeout in interface UserTransactionSystemExceptionCopyright © 2025. All rights reserved.