Package org.nuxeo.runtime.jtajca
Class NuxeoContainer.UserTransactionImpl
java.lang.Object
org.nuxeo.runtime.jtajca.NuxeoContainer.UserTransactionImpl
- All Implemented Interfaces:
javax.transaction.UserTransaction
- Enclosing class:
- NuxeoContainer
public static class NuxeoContainer.UserTransactionImpl
extends Object
implements javax.transaction.UserTransaction
User transaction that uses this container's transaction manager.
- Since:
- 5.6
-
Field Summary
Modifier and TypeFieldDescriptionprotected final javax.transaction.TransactionManager
-
Constructor Summary
-
Method Summary
-
Field Details
-
transactionManager
protected final javax.transaction.TransactionManager transactionManager
-
-
Constructor Details
-
UserTransactionImpl
public UserTransactionImpl(javax.transaction.TransactionManager manager)
-
-
Method Details
-
getStatus
public int getStatus() throws javax.transaction.SystemException- Specified by:
getStatus
in interfacejavax.transaction.UserTransaction
- Throws:
javax.transaction.SystemException
-
setRollbackOnly
- Specified by:
setRollbackOnly
in interfacejavax.transaction.UserTransaction
- Throws:
IllegalStateException
javax.transaction.SystemException
-
setTransactionTimeout
public void setTransactionTimeout(int seconds) throws javax.transaction.SystemException - Specified by:
setTransactionTimeout
in interfacejavax.transaction.UserTransaction
- Throws:
javax.transaction.SystemException
-
begin
public void begin() throws javax.transaction.NotSupportedException, javax.transaction.SystemException- Specified by:
begin
in interfacejavax.transaction.UserTransaction
- Throws:
javax.transaction.NotSupportedException
javax.transaction.SystemException
-
getTransactionId
-
transactionKeyAsString
-
commit
public void commit() throws javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, IllegalStateException, javax.transaction.RollbackException, SecurityException, javax.transaction.SystemException- Specified by:
commit
in interfacejavax.transaction.UserTransaction
- Throws:
javax.transaction.HeuristicMixedException
javax.transaction.HeuristicRollbackException
IllegalStateException
javax.transaction.RollbackException
SecurityException
javax.transaction.SystemException
-
rollback
public void rollback() throws IllegalStateException, SecurityException, javax.transaction.SystemException- Specified by:
rollback
in interfacejavax.transaction.UserTransaction
- Throws:
IllegalStateException
SecurityException
javax.transaction.SystemException
-