@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 Transaction
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
SystemException
public void rollback() throws IllegalStateException, SystemException
rollback
in interface Transaction
IllegalStateException
SystemException
public void setRollbackOnly() throws IllegalStateException, SystemException
setRollbackOnly
in interface Transaction
IllegalStateException
SystemException
public int getStatus() throws SystemException
getStatus
in interface Transaction
SystemException
public boolean enlistResource(XAResource xaRes) throws RollbackException, IllegalStateException, SystemException
enlistResource
in interface Transaction
RollbackException
IllegalStateException
SystemException
public boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException
delistResource
in interface Transaction
IllegalStateException
SystemException
public void registerSynchronization(Synchronization sync) throws RollbackException, IllegalStateException, SystemException
registerSynchronization
in interface Transaction
RollbackException
IllegalStateException
SystemException
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.