public class MockUserTransaction extends Object implements UserTransaction
| Constructor and Description |
|---|
MockUserTransaction() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
int |
getStatus() |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int arg0) |
public void begin()
throws NotSupportedException,
SystemException
begin in interface UserTransactionNotSupportedExceptionSystemExceptionUserTransaction.begin()public void commit()
throws HeuristicMixedException,
HeuristicRollbackException,
IllegalStateException,
RollbackException,
SecurityException,
SystemException
commit in interface UserTransactionHeuristicMixedExceptionHeuristicRollbackExceptionIllegalStateExceptionRollbackExceptionSecurityExceptionSystemExceptionUserTransaction.commit()public int getStatus()
throws SystemException
getStatus in interface UserTransactionSystemExceptionUserTransaction.getStatus()public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface UserTransactionIllegalStateExceptionSecurityExceptionSystemExceptionUserTransaction.rollback()public void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface UserTransactionIllegalStateExceptionSystemExceptionUserTransaction.setRollbackOnly()public void setTransactionTimeout(int arg0)
throws SystemException
setTransactionTimeout in interface UserTransactionSystemExceptionUserTransaction.setTransactionTimeout(int)Copyright © 1995-2015 Webtide. All Rights Reserved.