API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.transaction.xa. XAResource View Source
Author(s)
Since
Version
Serial
Hierarchy
 XAResource
Subinterfaces
Description
public interface XAResource
  The XAResource interface is a Java mapping of the industry standard XA interface based on the X/Open CAE Specification (Distributed Transaction Processing: The XA Specification).
See also:   
Methods
Hide/Show inherited methods
public void commit (Xid xid, boolean onePhase) throws XAException
  Commits the global transaction specified by xid.
public void end (Xid xid, int flags) throws XAException
  Ends the work performed on behalf of a transaction branch.
public void forget (Xid xid) throws XAException
  Tells the resource manager to forget about a heuristically completed transaction branch.
public int getTransactionTimeout () throws XAException
  Obtains the current transaction timeout value set for this XAResource instance.
public boolean isSameRM (XAResource xares) throws XAException
  This method is called to determine if the resource manager instance represented by the target object is the same as the resouce manager instance represented by the parameter xares.
public int prepare (Xid xid) throws XAException
  Ask the resource manager to prepare for a transaction commit of the transaction specified in xid.
public Xid recover (int flag) throws XAException
  Obtains a list of prepared transaction branches from a resource manager.
public void rollback (Xid xid) throws XAException
  Informs the resource manager to roll back work done on behalf of a transaction branch.
public boolean setTransactionTimeout (int seconds) throws XAException
  Sets the current transaction timeout value for this XAResource instance.
public void start (Xid xid, int flags) throws XAException
  Starts work on behalf of a transaction branch specified in xid.
Fields
Hide/Show inherited fields
publicfinalstatic int TMENDRSCAN = "8388608"
Ends a recovery scan.
publicfinalstatic int TMFAIL = "536870912"
Disassociates the caller and marks the transaction branch rollback-only.
publicfinalstatic int TMJOIN = "2097152"
Caller is joining existing transaction branch.
publicfinalstatic int TMNOFLAGS = "0"
Use TMNOFLAGS to indicate no flags value is selected.
publicfinalstatic int TMONEPHASE = "1073741824"
Caller is using one-phase optimization.
publicfinalstatic int TMRESUME = "134217728"
Caller is resuming association with a suspended transaction branch.
publicfinalstatic int TMSTARTRSCAN = "16777216"
Starts a recovery scan.
publicfinalstatic int TMSUCCESS = "67108864"
Disassociates caller from a transaction branch.
publicfinalstatic int TMSUSPEND = "33554432"
Caller is suspending (not ending) its association with a transaction branch.
publicfinalstatic int XA_OK = "0"
The transaction work has been prepared normally.
publicfinalstatic int XA_RDONLY = "3"
The transaction branch has been read-only and has been committed.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar