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 Transaction
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, IllegalStateException, SystemException
commit
in interface Transaction
RollbackException
HeuristicMixedException
HeuristicRollbackException
IllegalStateException
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 void registerSynchronization(Synchronization synchronization) throws RollbackException, IllegalStateException, SystemException
registerSynchronization
in interface Transaction
RollbackException
IllegalStateException
SystemException
public void enlistConnection(Connection connection)
public Connection getEnlistedConnection()
public boolean enlistResource(XAResource xaResource) throws RollbackException, IllegalStateException, SystemException
enlistResource
in interface Transaction
RollbackException
IllegalStateException
SystemException
public boolean delistResource(XAResource xaResource, int i) throws IllegalStateException, SystemException
delistResource
in interface Transaction
IllegalStateException
SystemException
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved