org.jboss.seam.persistence.transaction
Class UTTransaction
java.lang.Object
org.jboss.seam.persistence.transaction.AbstractUserTransaction
org.jboss.seam.persistence.transaction.UTTransaction
- All Implemented Interfaces:
- UserTransaction, SeamTransaction
@Veto
public class UTTransaction
- extends AbstractUserTransaction
Wraps JTA transaction management in a Seam UserTransaction interface.
- Author:
- Mike Youngstrom, Gavin King
Methods inherited from class org.jboss.seam.persistence.transaction.AbstractUserTransaction |
enlist, getSynchronizations, isActive, isActiveOrMarkedRollback, isCommitted, isConversationContextRequired, isMarkedRollback, isNoTransaction, isRolledBack, isRolledBackOrMarkedRollback, setSynchronizations |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
begin
public void begin()
throws NotSupportedException,
SystemException
- Throws:
NotSupportedException
SystemException
commit
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
- Throws:
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException
rollback
public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
- Throws:
IllegalStateException
SecurityException
SystemException
getStatus
public int getStatus()
throws SystemException
- Throws:
SystemException
setRollbackOnly
public void setRollbackOnly()
throws IllegalStateException,
SystemException
- Throws:
IllegalStateException
SystemException
setTransactionTimeout
public void setTransactionTimeout(int timeout)
throws SystemException
- Throws:
SystemException
registerSynchronization
public void registerSynchronization(Synchronization sync)
- Specified by:
registerSynchronization
in interface SeamTransaction
- Specified by:
registerSynchronization
in class AbstractUserTransaction
Copyright © 2011 Seam Framework. All Rights Reserved.