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 UserTransaction
NotSupportedException
SystemException
UserTransaction.begin()
public void commit() throws HeuristicMixedException, HeuristicRollbackException, IllegalStateException, RollbackException, SecurityException, SystemException
commit
in interface UserTransaction
HeuristicMixedException
HeuristicRollbackException
IllegalStateException
RollbackException
SecurityException
SystemException
UserTransaction.commit()
public int getStatus() throws SystemException
getStatus
in interface UserTransaction
SystemException
UserTransaction.getStatus()
public void rollback() throws IllegalStateException, SecurityException, SystemException
rollback
in interface UserTransaction
IllegalStateException
SecurityException
SystemException
UserTransaction.rollback()
public void setRollbackOnly() throws IllegalStateException, SystemException
setRollbackOnly
in interface UserTransaction
IllegalStateException
SystemException
UserTransaction.setRollbackOnly()
public void setTransactionTimeout(int arg0) throws SystemException
setTransactionTimeout
in interface UserTransaction
SystemException
UserTransaction.setTransactionTimeout(int)
Copyright © 1995-2015 Webtide. All Rights Reserved.