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 UserTransactionImp

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

All Implemented Interfaces:
  Serializable, Referenceable, UserTransaction

    public class UserTransactionImp

extends Object
implements UserTransaction, Serializable, Referenceable

Our UserTransaction implementation for J2SE transactions. This class is special in that it automatically starts up and recover the transaction service on first use. Note: don't use this class in J2EE applications in order to avoid starting different transaction engines in the same application server! J2EE applications should use J2eeUserTransaction instead.

See Also:
  Serialized Form

Constructor Summary
`UserTransactionImp()` No-argument constructor.

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

### UserTransactionImp

    public UserTransactionImp()

  No-argument constructor.

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.