public class SimpleJtaTransactionImpl extends Object implements Transaction
| Constructor and Description |
|---|
SimpleJtaTransactionImpl(SimpleJtaTransactionManagerImpl jtaTransactionManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
boolean |
delistResource(XAResource xaResource,
int i) |
void |
enlistConnection(Connection connection) |
boolean |
enlistResource(XAResource xaResource) |
Connection |
getEnlistedConnection() |
int |
getStatus() |
void |
registerSynchronization(Synchronization synchronization) |
void |
rollback() |
void |
setRollbackOnly() |
public SimpleJtaTransactionImpl(SimpleJtaTransactionManagerImpl jtaTransactionManager)
public int getStatus()
getStatus in interface Transactionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
IllegalStateException,
SystemException
commit in interface TransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionIllegalStateExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SystemException
rollback in interface TransactionIllegalStateExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionIllegalStateExceptionSystemExceptionpublic void registerSynchronization(Synchronization synchronization) throws RollbackException, IllegalStateException, SystemException
registerSynchronization in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionpublic void enlistConnection(Connection connection)
public Connection getEnlistedConnection()
public boolean enlistResource(XAResource xaResource) throws RollbackException, IllegalStateException, SystemException
enlistResource in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionpublic boolean delistResource(XAResource xaResource, int i) throws IllegalStateException, SystemException
delistResource in interface TransactionIllegalStateExceptionSystemExceptionCopyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved