org.jboss.jca.core.tx.noopts

## Class XATerminatorImpl

- java.lang.Object
- - org.jboss.jca.core.tx.noopts.XATerminatorImpl

- All Implemented Interfaces:
    java.io.Serializable, javax.resource.spi.XATerminator

      public class XATerminatorImpl
      extends java.lang.Object
      implements org.jboss.jca.core.spi.transaction.xa.XATerminator, java.io.Serializable

  An XATerminator implementation
  Author:
    Jesper Pedersen
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `XATerminatorImpl()` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `cancelWork(javax.resource.spi.work.Work work, javax.transaction.xa.Xid xid)` Invoked when the work fails
    `void` | `commit(javax.transaction.xa.Xid xid, boolean onePhase)`
    `void` | `endWork(javax.resource.spi.work.Work work, javax.transaction.xa.Xid xid)` Invoked when transaction inflow work ends
    `void` | `forget(javax.transaction.xa.Xid xid)`
    `int` | `prepare(javax.transaction.xa.Xid xid)`
    `javax.transaction.xa.Xid[]` | `recover(int flag)`
    `void` | `registerWork(javax.resource.spi.work.Work work, javax.transaction.xa.Xid xid, long timeout)` Invoked for transaction inflow of work
    `void` | `rollback(javax.transaction.xa.Xid xid)`
    `void` | `startWork(javax.resource.spi.work.Work work, javax.transaction.xa.Xid xid)` Invoked for transaction inflow of work

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

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

- - ### Constructor Detail

    - #### XATerminatorImpl

          public XATerminatorImpl()

      Constructor

  - ### Method Detail

    - #### commit

          public void commit(javax.transaction.xa.Xid xid,
                             boolean onePhase)
                      throws javax.transaction.xa.XAException

      Specified by:
        `commit` in interface `javax.resource.spi.XATerminator`
      Throws:
        `javax.transaction.xa.XAException`

    - #### forget

          public void forget(javax.transaction.xa.Xid xid)
                      throws javax.transaction.xa.XAException

      Specified by:
        `forget` in interface `javax.resource.spi.XATerminator`
      Throws:
        `javax.transaction.xa.XAException`

    - #### prepare

          public int prepare(javax.transaction.xa.Xid xid)
                      throws javax.transaction.xa.XAException

      Specified by:
        `prepare` in interface `javax.resource.spi.XATerminator`
      Throws:
        `javax.transaction.xa.XAException`

    - #### recover

          public javax.transaction.xa.Xid[] recover(int flag)
                                             throws javax.transaction.xa.XAException

      Specified by:
        `recover` in interface `javax.resource.spi.XATerminator`
      Throws:
        `javax.transaction.xa.XAException`

    - #### rollback

          public void rollback(javax.transaction.xa.Xid xid)
                        throws javax.transaction.xa.XAException

      Specified by:
        `rollback` in interface `javax.resource.spi.XATerminator`
      Throws:
        `javax.transaction.xa.XAException`

    - #### registerWork

          public void registerWork(javax.resource.spi.work.Work work,
                                   javax.transaction.xa.Xid xid,
                                   long timeout)
                            throws javax.resource.spi.work.WorkCompletedException

      Invoked for transaction inflow of work
      Parameters:
        `work` - The work starting
        `xid` - The xid of the work
        `timeout` - The transaction timeout
      Throws:
        `javax.resource.spi.work.WorkCompletedException` - with error code WorkException.TX_CONCURRENT_WORK_DISALLOWED when work is already present for the xid or whose completion is in progress, only the global part of the xid must be used for this check.

    - #### startWork

          public void startWork(javax.resource.spi.work.Work work,
                                javax.transaction.xa.Xid xid)
                         throws javax.resource.spi.work.WorkCompletedException

      Invoked for transaction inflow of work
      Parameters:
        `work` - The work starting
        `xid` - The xid of the work
      Throws:
        `javax.resource.spi.work.WorkCompletedException` - With error code WorkException.TX_RECREATE_FAILED if it is unable to recreate the transaction context

    - #### endWork

          public void endWork(javax.resource.spi.work.Work work,
                              javax.transaction.xa.Xid xid)

      Invoked when transaction inflow work ends
      Parameters:
        `work` - The work ending
        `xid` - The xid of the work

    - #### cancelWork

          public void cancelWork(javax.resource.spi.work.Work work,
                                 javax.transaction.xa.Xid xid)

      Invoked when the work fails
      Parameters:
        `work` - The work ending
        `xid` - The xid of the work

Copyright © 2014 IronJacamar (http://www.ironjacamar.org)