public final class RemoteUserTransaction extends Object implements UserTransaction, Serializable
UserTransaction which controls the transaction state of a remote system.| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
int |
getStatus() |
int |
getTransactionTimeout() |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int seconds) |
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()
getStatus in interface UserTransactionpublic void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface UserTransactionSystemExceptionpublic int getTransactionTimeout()
Copyright © 2020 JBoss by Red Hat. All rights reserved.