Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.atomikos.icatch.jta
Class J2eeUserTransaction

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

All Implemented Interfaces:
  Serializable, Referenceable, UserTransaction

    public class J2eeUserTransaction

extends Object
implements UserTransaction, Serializable, 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
`J2eeUserTransaction()`

Method Summary
`void` | `begin()`
`void` | `commit()`
`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 NotSupportedException,
                      SystemException

  Specified by:
    `begin` in interface `UserTransaction`
  Throws:
    `NotSupportedException`
    `SystemException`
  See Also:
    `UserTransaction`

### commit

    public void commit()
                throws RollbackException,
                       HeuristicMixedException,
                       HeuristicRollbackException,
                       SystemException,
                       IllegalStateException,
                       SecurityException

  Specified by:
    `commit` in interface `UserTransaction`
  Throws:
    `RollbackException`
    `HeuristicMixedException`
    `HeuristicRollbackException`
    `SystemException`
    `IllegalStateException`
    `SecurityException`
  See Also:
    `UserTransaction`

### rollback

    public void rollback()
                  throws IllegalStateException,
                         SystemException,
                         SecurityException

  Specified by:
    `rollback` in interface `UserTransaction`
  Throws:
    `IllegalStateException`
    `SystemException`
    `SecurityException`
  See Also:
    `UserTransaction`

### setRollbackOnly

    public void setRollbackOnly()
                         throws IllegalStateException,
                                SystemException

  Specified by:
    `setRollbackOnly` in interface `UserTransaction`
  Throws:
    `IllegalStateException`
    `SystemException`
  See Also:
    `UserTransaction`

### getStatus

    public int getStatus()
                  throws SystemException

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

### setTransactionTimeout

    public void setTransactionTimeout(int seconds)
                               throws SystemException

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

### getReference

    public Reference getReference()
                           throws NamingException

  Specified by:
    `getReference` in interface `Referenceable`
  Throws:
    `NamingException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012. All Rights Reserved.