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
NotSupportedException
SystemException
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
public void rollback() throws IllegalStateException, SecurityException, SystemException
public void setRollbackOnly() throws IllegalStateException, SystemException
IllegalStateException
SystemException
public int getStatus() throws SystemException
SystemException
public void setTransactionTimeout(int seconds) throws SystemException
SystemException
public int getTimeout() throws SystemException
SystemException
Copyright © 2021 JBoss by Red Hat. All rights reserved.