public final class LocalTransaction extends AbstractTransaction
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
boolean |
delistResource(XAResource xaRes,
int flag) |
boolean |
enlistResource(XAResource xaRes) |
boolean |
equals(Object obj) |
String |
getParentName()
Get the name of the node which initiated the transaction.
|
int |
getStatus() |
int |
hashCode() |
boolean |
isImported()
Determine if this transaction was imported.
|
void |
registerSynchronization(Synchronization sync) |
void |
rollback() |
void |
setRollbackOnly() |
getProviderInterfacepublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
SystemException
public void rollback()
throws IllegalStateException,
SystemException
IllegalStateExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
IllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
SystemExceptionpublic boolean enlistResource(XAResource xaRes) throws RollbackException, IllegalStateException, SystemException
public boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException
IllegalStateExceptionSystemExceptionpublic void registerSynchronization(Synchronization sync) throws RollbackException, IllegalStateException, SystemException
public String getParentName()
null if it could not be determinedpublic boolean isImported()
true if the transaction was imported, false if it was initiated locallyCopyright © 2017 JBoss by Red Hat. All rights reserved.