J2eeUserTransaction (Transactions JTA 4.0.6 API)
Date: 2018-01-11

com.atomikos.icatch.jta

## Class J2eeUserTransaction

- java.lang.Object
- - com.atomikos.icatch.jta.J2eeUserTransaction

- All Implemented Interfaces:
    java.io.Serializable, javax.naming.Referenceable, javax.transaction.UserTransaction

      public class J2eeUserTransaction
      extends java.lang.Object
      implements javax.transaction.UserTransaction, java.io.Serializable, javax.naming.Referenceable

  A J2EE UserTransaction implementation. J2EE applications can use instances of this class to delimit transactions. Note: J2EE applications should NOT use the default UserTransactionImp in order to avoid that the transaction service is started twice in different locations. Instances can be bound in JNDI (if the application server allows this).
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `J2eeUserTransaction()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `begin()`
    `void` | `commit()`
    `javax.naming.Reference` | `getReference()`
    `int` | `getStatus()`
    `void` | `rollback()`
    `void` | `setRollbackOnly()`
    `void` | `setTransactionTimeout(int seconds)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### J2eeUserTransaction

          public J2eeUserTransaction()

  - ### Method Detail

    - #### 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`
      See Also:
        `UserTransaction`

    - #### commit

          public void commit()
                      throws javax.transaction.RollbackException,
                             javax.transaction.HeuristicMixedException,
                             javax.transaction.HeuristicRollbackException,
                             javax.transaction.SystemException,
                             java.lang.IllegalStateException,
                             java.lang.SecurityException

      Specified by:
        `commit` in interface `javax.transaction.UserTransaction`
      Throws:
        `javax.transaction.RollbackException`
        `javax.transaction.HeuristicMixedException`
        `javax.transaction.HeuristicRollbackException`
        `javax.transaction.SystemException`
        `java.lang.IllegalStateException`
        `java.lang.SecurityException`
      See Also:
        `UserTransaction`

    - #### rollback

          public void rollback()
                        throws java.lang.IllegalStateException,
                               javax.transaction.SystemException,
                               java.lang.SecurityException

      Specified by:
        `rollback` in interface `javax.transaction.UserTransaction`
      Throws:
        `java.lang.IllegalStateException`
        `javax.transaction.SystemException`
        `java.lang.SecurityException`
      See Also:
        `UserTransaction`

    - #### setRollbackOnly

          public void setRollbackOnly()
                               throws java.lang.IllegalStateException,
                                      javax.transaction.SystemException

      Specified by:
        `setRollbackOnly` in interface `javax.transaction.UserTransaction`
      Throws:
        `java.lang.IllegalStateException`
        `javax.transaction.SystemException`
      See Also:
        `UserTransaction`

    - #### getStatus

          public int getStatus()
                        throws javax.transaction.SystemException

      Specified by:
        `getStatus` in interface `javax.transaction.UserTransaction`
      Throws:
        `javax.transaction.SystemException`
      See Also:
        `UserTransaction`

    - #### setTransactionTimeout

          public void setTransactionTimeout(int seconds)
                                     throws javax.transaction.SystemException

      Specified by:
        `setTransactionTimeout` in interface `javax.transaction.UserTransaction`
      Throws:
        `javax.transaction.SystemException`
      See Also:
        `UserTransaction`

    - #### getReference

          public javax.naming.Reference getReference()
                                              throws javax.naming.NamingException

      Specified by:
        `getReference` in interface `javax.naming.Referenceable`
      Throws:
        `javax.naming.NamingException`

Copyright © 2018. All Rights Reserved.