org.hibernate.test.tm
Class SimpleJtaTransactionImpl
java.lang.Object
org.hibernate.test.tm.SimpleJtaTransactionImpl
- All Implemented Interfaces:
- Transaction
public class SimpleJtaTransactionImpl
- extends Object
- implements Transaction
SimpleJtaTransactionImpl implementation
- Author:
- Steve Ebersole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleJtaTransactionImpl
public SimpleJtaTransactionImpl(SimpleJtaTransactionManagerImpl jtaTransactionManager)
getStatus
public int getStatus()
- Specified by:
getStatus
in interface Transaction
commit
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
IllegalStateException,
SystemException
- Specified by:
commit
in interface Transaction
- Throws:
RollbackException
HeuristicMixedException
HeuristicRollbackException
IllegalStateException
SystemException
rollback
public void rollback()
throws IllegalStateException,
SystemException
- Specified by:
rollback
in interface Transaction
- Throws:
IllegalStateException
SystemException
setRollbackOnly
public void setRollbackOnly()
throws IllegalStateException,
SystemException
- Specified by:
setRollbackOnly
in interface Transaction
- Throws:
IllegalStateException
SystemException
registerSynchronization
public void registerSynchronization(Synchronization synchronization)
throws RollbackException,
IllegalStateException,
SystemException
- Specified by:
registerSynchronization
in interface Transaction
- Throws:
RollbackException
IllegalStateException
SystemException
enlistConnection
public void enlistConnection(Connection connection)
getEnlistedConnection
public Connection getEnlistedConnection()
enlistResource
public boolean enlistResource(XAResource xaResource)
throws RollbackException,
IllegalStateException,
SystemException
- Specified by:
enlistResource
in interface Transaction
- Throws:
RollbackException
IllegalStateException
SystemException
delistResource
public boolean delistResource(XAResource xaResource,
int i)
throws IllegalStateException,
SystemException
- Specified by:
delistResource
in interface Transaction
- Throws:
IllegalStateException
SystemException
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.