com.atomikos.icatch.jta
Class UserTransactionImp
java.lang.Object
com.atomikos.icatch.jta.UserTransactionImp
- All Implemented Interfaces:
- Serializable, Referenceable, UserTransaction
public class UserTransactionImp
- extends Object
- implements UserTransaction, Serializable, Referenceable
Our UserTransaction implementation for J2SE transactions. This class is
special in that it automatically starts up and recover the transaction
service on first use. Note: don't use this class in J2EE applications in
order to avoid starting different transaction engines in the same application
server! J2EE applications should use J2eeUserTransaction instead.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserTransactionImp
public UserTransactionImp()
- No-argument constructor.
begin
public void begin()
throws NotSupportedException,
SystemException
- Specified by:
begin
in interface UserTransaction
- Throws:
NotSupportedException
SystemException
- See Also:
UserTransaction
commit
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SystemException,
IllegalStateException,
SecurityException
- Specified by:
commit
in interface UserTransaction
- Throws:
RollbackException
HeuristicMixedException
HeuristicRollbackException
SystemException
IllegalStateException
SecurityException
- See Also:
UserTransaction
rollback
public void rollback()
throws IllegalStateException,
SystemException,
SecurityException
- Specified by:
rollback
in interface UserTransaction
- Throws:
IllegalStateException
SystemException
SecurityException
- See Also:
UserTransaction
setRollbackOnly
public void setRollbackOnly()
throws IllegalStateException,
SystemException
- Specified by:
setRollbackOnly
in interface UserTransaction
- Throws:
IllegalStateException
SystemException
- See Also:
UserTransaction
getStatus
public int getStatus()
throws SystemException
- Specified by:
getStatus
in interface UserTransaction
- Throws:
SystemException
- See Also:
UserTransaction
setTransactionTimeout
public void setTransactionTimeout(int seconds)
throws SystemException
- Specified by:
setTransactionTimeout
in interface UserTransaction
- Throws:
SystemException
- See Also:
UserTransaction
getReference
public Reference getReference()
throws NamingException
- Specified by:
getReference
in interface Referenceable
- Throws:
NamingException
Copyright © 2011. All Rights Reserved.