public class BaseTransaction extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
BaseTransaction() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit()
We will never throw a HeuristicRollbackException because if we get a
HeuristicRollback from a resource, and can successfully rollback the
other resources, this is then the same as having simply been forced to
rollback the transaction during phase 1.
|
int |
getStatus() |
int |
getTimeout() |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int seconds) |
public void begin()
throws NotSupportedException,
SystemException
NotSupportedExceptionSystemExceptionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
public void setRollbackOnly()
throws IllegalStateException,
SystemException
IllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
SystemExceptionpublic void setTransactionTimeout(int seconds)
throws SystemException
SystemExceptionpublic int getTimeout()
throws SystemException
SystemExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.