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 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 interface javax.transaction.UserTransaction
      Throws:
      javax.transaction.SystemException
    • setRollbackOnly

      public void setRollbackOnly() throws IllegalStateException, javax.transaction.SystemException
      Specified by:
      setRollbackOnly in interface javax.transaction.UserTransaction
      Throws:
      IllegalStateException
      javax.transaction.SystemException
    • setTransactionTimeout

      public void setTransactionTimeout(int seconds) throws javax.transaction.SystemException
      Specified by:
      setTransactionTimeout in interface javax.transaction.UserTransaction
      Throws:
      javax.transaction.SystemException
    • begin

      public void begin() throws javax.transaction.NotSupportedException, javax.transaction.SystemException
      Specified by:
      begin in interface javax.transaction.UserTransaction
      Throws:
      javax.transaction.NotSupportedException
      javax.transaction.SystemException
    • getTransactionId

      protected String getTransactionId()
    • transactionKeyAsString

      protected static String transactionKeyAsString(Object key)
    • commit

      public void commit() throws javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, IllegalStateException, javax.transaction.RollbackException, SecurityException, javax.transaction.SystemException
      Specified by:
      commit in interface javax.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 interface javax.transaction.UserTransaction
      Throws:
      IllegalStateException
      SecurityException
      javax.transaction.SystemException