| 
 | Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-07 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectweblogic.wsee.wstx.wsat.WSATXAResource
public class WSATXAResource
| Field Summary | 
|---|
| Fields inherited from interface javax.transaction.xa.XAResource | 
|---|
| TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY | 
| Constructor Summary | |
|---|---|
| WSATXAResource(EndpointReference epr,
               Xid xid)Constructor used for runtime | |
| WSATXAResource(Transactional.Version version,
               EndpointReference epr,
               Xid xid)Constructor used for runtime | |
| WSATXAResource(Transactional.Version version,
               EndpointReference epr,
               Xid xid,
               boolean isRecovery)Constructor used for recovery | |
| Method Summary | |
|---|---|
|  void | commit(Xid xid,
       boolean onePhase)Commit. | 
|  void | end(Xid xid,
    int i)Not applicable to WS-AT | 
|  boolean | equals(Object obj)Equality check based on instanceof and Xid that identifies this Synchronization | 
| protected  void | finalize()Prevents leaks in the event of protocol exceptions, abandonments, etc. | 
|  void | forget(Xid xid)Not applicable to WS-AT | 
|  int | getTransactionTimeout()Not applicable to WS-AT | 
|  Xid | getXid()Returns Xid for use in equality, as key in durable participant map, and from gateway registerWSATResource of subordinate/participant. | 
|  boolean | isSameRM(XAResource xaResource)Not applicable to WS-AT | 
|  int | prepare(Xid xid) | 
|  Xid[] | recover(int i)Not applicable to WS-AT | 
|  void | rollback(Xid xid) | 
|  void | setBranchQualifier(byte[] bqual)Called from Registration to set branch qualifier that was generated during enlist | 
|  void | setStatus(String status)Called by Coordinator service in reaction to completion operation call in order to setStatus accordingly | 
|  boolean | setTransactionTimeout(int i)Not applicable to WS-AT | 
|  void | start(Xid xid,
      int i)Not applicable to WS-AT | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public WSATXAResource(EndpointReference epr,
                      Xid xid)
epr - SEndpointReference participant endpoint referencexid - Xid of transaction
public WSATXAResource(Transactional.Version version,
                      EndpointReference epr,
                      Xid xid)
version - Transactional.Versionepr - EndpointReference participant endpoint referencexid - Xid of transaction
public WSATXAResource(Transactional.Version version,
                      EndpointReference epr,
                      Xid xid,
                      boolean isRecovery)
version - Transactional.Versionepr - EndpointReference participant endpoint referencexid - Xid of transactionisRecovery - true if for recovery, false if not (ie if for runtime)| Method Detail | 
|---|
public void setStatus(String status)
status - String status as found in WSATConstants.
public int prepare(Xid xid)
            throws XAException
prepare in interface XAResourcexid - Xid The actual Xid passed in is ignored and the member variable used instead as the value passed in
            as there is a final 1-to-1 relationship between WSATXAResource and Xid.  In reality is doesn't matter but in
            order to be consistent with rollback (where it does matter), the member variable is used
XAException - xaException
protected void finalize()
                 throws Throwable
finalize in class ObjectThrowable - he Exception raised by this method
public void commit(Xid xid,
                   boolean onePhase)
            throws XAException
commit in interface XAResourcexid - Xid The actual Xid passed in is ignored and the member variable used instead as there is a final 
                 1-to-1 relationship between WSATXAResource and Xid during construction.  In reality is doesn't matter but in
                 order to be consistent with rollback (where it does matter), the member variable is usedonePhase - there is no single phase commit in WS-AT and so this is ignored
XAException - xaException
public void rollback(Xid xid)
              throws XAException
rollback in interface XAResourcexid - Xid The actual Xid passed in is ignored and the member variable used instead as the value passed in
            will be null for bottom-up recovery and because there is a final 1-to-1 relationship between WSATXAResource and Xid.
XAException
public void forget(Xid xid)
            throws XAException
forget in interface XAResourcexid - Xid
XAException
public boolean setTransactionTimeout(int i)
                              throws XAException
setTransactionTimeout in interface XAResourcei - timeout
XAException
public void start(Xid xid,
                  int i)
           throws XAException
start in interface XAResourcexid - Xidi - flag
XAException
public void end(Xid xid,
                int i)
         throws XAException
end in interface XAResourcexid - Xidi - flag
XAException - xaexception
public int getTransactionTimeout()
                          throws XAException
getTransactionTimeout in interface XAResourceXAException
public boolean isSameRM(XAResource xaResource)
                 throws XAException
isSameRM in interface XAResourcexaResource - XAResource
XAException - xaexeception
public Xid[] recover(int i)
              throws XAException
recover in interface XAResourcei - flag
XAException - xaexceptionpublic Xid getXid()
public void setBranchQualifier(byte[] bqual)
bqual - byte[]public boolean equals(Object obj)
equals in class Objectobj - Object to conduct equality check against
public String toString()
toString in class Object| 
 | Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-07 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||