@Immutable @ThreadSafe public class LocalTransaction extends Object implements Transaction
LocalTransactionManager| Modifier | Constructor and Description |
|---|---|
protected |
LocalTransaction() |
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
boolean |
delistResource(XAResource xaRes,
int flag) |
boolean |
enlistResource(XAResource xaRes) |
boolean |
equals(Object o) |
int |
getStatus() |
int |
hashCode() |
void |
registerSynchronization(Synchronization sync) |
void |
rollback() |
void |
setRollbackOnly() |
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
SystemException
commit in interface TransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SystemException
rollback in interface TransactionIllegalStateExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface TransactionSystemExceptionpublic boolean enlistResource(XAResource xaRes) throws RollbackException, IllegalStateException, SystemException
enlistResource in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionpublic boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException
delistResource in interface TransactionIllegalStateExceptionSystemExceptionpublic void registerSynchronization(Synchronization sync) throws RollbackException, IllegalStateException, SystemException
registerSynchronization in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.