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
Fields Modifier and Type Field Description protected javax.transaction.TransactionManager
transactionManager
-
Constructor Summary
Constructors Constructor Description UserTransactionImpl(javax.transaction.TransactionManager manager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
begin()
void
commit()
int
getStatus()
protected String
getTransactionId()
void
rollback()
void
setRollbackOnly()
void
setTransactionTimeout(int seconds)
protected static String
transactionKeyAsString(Object key)
-
-
-
Method Detail
-
getStatus
public int getStatus() throws javax.transaction.SystemException
- Specified by:
getStatus
in interfacejavax.transaction.UserTransaction
- Throws:
javax.transaction.SystemException
-
setRollbackOnly
public void setRollbackOnly() throws IllegalStateException, javax.transaction.SystemException
- 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
protected String getTransactionId()
-
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
-
-