Class UserTransaction

java.lang.Object
com.zfabrik.tx.UserTransaction
All Implemented Interfaces:
javax.transaction.UserTransaction

public class UserTransaction extends Object implements javax.transaction.UserTransaction
public wrapper of UT implementation
  • Constructor Details

    • UserTransaction

      public UserTransaction()
  • Method Details

    • get

      public static javax.transaction.UserTransaction get()
    • 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
    • commit

      public void commit() throws javax.transaction.RollbackException, javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, SecurityException, IllegalStateException, javax.transaction.SystemException
      Specified by:
      commit in interface javax.transaction.UserTransaction
      Throws:
      javax.transaction.RollbackException
      javax.transaction.HeuristicMixedException
      javax.transaction.HeuristicRollbackException
      SecurityException
      IllegalStateException
      javax.transaction.SystemException
    • getStatus

      public int getStatus() throws javax.transaction.SystemException
      Specified by:
      getStatus in interface javax.transaction.UserTransaction
      Throws:
      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
    • 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 arg0) throws javax.transaction.SystemException
      Specified by:
      setTransactionTimeout in interface javax.transaction.UserTransaction
      Throws:
      javax.transaction.SystemException