public class SimulatedUserTransaction extends Object implements UserTransaction
| Constructor and Description |
|---|
SimulatedUserTransaction() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
int |
getStatus() |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int i) |
public void begin()
throws NotSupportedException,
SystemException
begin in interface UserTransactionNotSupportedExceptionSystemExceptionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface UserTransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface UserTransactionIllegalStateExceptionSecurityExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface UserTransactionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface UserTransactionSystemExceptionpublic void setTransactionTimeout(int i)
throws SystemException
setTransactionTimeout in interface UserTransactionSystemExceptionCopyright © 2017–2018. All rights reserved.