com.acme
Class MockUserTransaction
java.lang.Object
com.acme.MockUserTransaction
- All Implemented Interfaces:
- UserTransaction
public class MockUserTransaction
- extends Object
- implements UserTransaction
MockUserTransaction
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockUserTransaction
public MockUserTransaction()
begin
public void begin()
throws NotSupportedException,
SystemException
- Specified by:
begin
in interface UserTransaction
- Throws:
NotSupportedException
SystemException
- See Also:
UserTransaction.begin()
commit
public void commit()
throws HeuristicMixedException,
HeuristicRollbackException,
IllegalStateException,
RollbackException,
SecurityException,
SystemException
- Specified by:
commit
in interface UserTransaction
- Throws:
HeuristicMixedException
HeuristicRollbackException
IllegalStateException
RollbackException
SecurityException
SystemException
- See Also:
UserTransaction.commit()
getStatus
public int getStatus()
throws SystemException
- Specified by:
getStatus
in interface UserTransaction
- Throws:
SystemException
- See Also:
UserTransaction.getStatus()
rollback
public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
- Specified by:
rollback
in interface UserTransaction
- Throws:
IllegalStateException
SecurityException
SystemException
- See Also:
UserTransaction.rollback()
setRollbackOnly
public void setRollbackOnly()
throws IllegalStateException,
SystemException
- Specified by:
setRollbackOnly
in interface UserTransaction
- Throws:
IllegalStateException
SystemException
- See Also:
UserTransaction.setRollbackOnly()
setTransactionTimeout
public void setTransactionTimeout(int arg0)
throws SystemException
- Specified by:
setTransactionTimeout
in interface UserTransaction
- Throws:
SystemException
- See Also:
UserTransaction.setTransactionTimeout(int)
Copyright © 2008 Mort Bay Consulting. All Rights Reserved.