| java.lang.Object org.apache.derby.client.net.NetXAResource
Method Summary | |
public void | addSpecialRegisters(String s) | public void | commit(Xid xid, boolean onePhase) | public void | end(Xid xid, int flags) Ends the work performed on behalf of a transaction branch. | public void | forget(Xid xid) Tell the resource manager to forget about a heuristically (MANUALLY) completed transaction branch.
Parameters: xid - A global transaction identifier throws: XAException - An error has occurred. | public List | getSpecialRegisters() | public int | getTransactionTimeout() Obtain the current transaction timeout value set for this XAResource instance. | public void | initForReuse() | public boolean | isSameRM(XAResource xares) | public int | prepare(Xid xid) Ask the resource manager to prepare for a transaction commit of the transaction specified in xid.
Parameters: xid - A global transaction identifier A value indicating the resource manager's vote on the outcome of the transaction. | public Xid[] | recover(int flag) Obtain a list of prepared transaction branches from a resource manager. | protected void | removeXaresFromSameRMchain() | public void | rollback(Xid xid) | public boolean | setTransactionTimeout(int seconds) Set the current transaction timeout value for this XAResource instance. | public synchronized void | start(Xid xid, int flags) Start work on behalf of a transaction branch specified in xid
Parameters: xid - A global transaction identifier to be associated with the resource Parameters: flags - One of TMNOFLAGS, TMJOIN, or TMRESUME throws: XAException - An error has occurred. | protected void | throwXAException(int rc) | protected void | throwXAException(int rc, boolean resetFlag) | protected int | xaRetValErrorAccumSQL(NetXACallInfo callInfo, int currentRC) | public static boolean | xidsEqual(Xid xid1, Xid xid2) |
ACTIVE_ONLY | final public static int ACTIVE_ONLY(Code) | | |
INITIAL_CALLINFO_ELEMENTS | final public static int INITIAL_CALLINFO_ELEMENTS(Code) | | |
RECOVER_XID_ARRAY_LENGTH | final public static int RECOVER_XID_ARRAY_LENGTH(Code) | | |
TMTIMEOUT | final public static int TMTIMEOUT(Code) | | |
XAFUNCSTR_COMMIT | final public static String XAFUNCSTR_COMMIT(Code) | | |
XAFUNCSTR_FORGET | final public static String XAFUNCSTR_FORGET(Code) | | |
XAFUNCSTR_NONE | final public static String XAFUNCSTR_NONE(Code) | | |
XAFUNCSTR_PREPARE | final public static String XAFUNCSTR_PREPARE(Code) | | |
XAFUNCSTR_RECOVER | final public static String XAFUNCSTR_RECOVER(Code) | | |
XAFUNCSTR_ROLLBACK | final public static String XAFUNCSTR_ROLLBACK(Code) | | |
XAFUNCSTR_START | final public static String XAFUNCSTR_START(Code) | | |
XAFUNC_COMMIT | final public static int XAFUNC_COMMIT(Code) | | |
XAFUNC_END | final public static int XAFUNC_END(Code) | | |
XAFUNC_FORGET | final public static int XAFUNC_FORGET(Code) | | |
XAFUNC_NONE | final public static int XAFUNC_NONE(Code) | | |
XAFUNC_PREPARE | final public static int XAFUNC_PREPARE(Code) | | |
XAFUNC_RECOVER | final public static int XAFUNC_RECOVER(Code) | | |
XAFUNC_ROLLBACK | final public static int XAFUNC_ROLLBACK(Code) | | |
XAFUNC_START | final public static int XAFUNC_START(Code) | | |
XA_NULL_XID | final public static int XA_NULL_XID(Code) | | |
activeXATransCount_ | int activeXATransCount_(Code) | | |
connectionCount_ | int connectionCount_(Code) | | |
ignoreMe_ | protected boolean ignoreMe_(Code) | | |
nextElement | public int nextElement(Code) | | |
numXACallInfo_ | int numXACallInfo_(Code) | | |
sameRMGroupIndex_ | protected int sameRMGroupIndex_(Code) | | |
xaResourceSameRMGroup_ | protected static Vector xaResourceSameRMGroup_(Code) | | |
addSpecialRegisters | public void addSpecialRegisters(String s)(Code) | | |
end | public void end(Xid xid, int flags) throws XAException(Code) | | Ends the work performed on behalf of a transaction branch. The resource manager dissociates the XA resource from
the transaction branch specified and let the transaction be completed.
If TMSUSPEND is specified in flags, the transaction branch is temporarily suspended in incomplete state. The
transaction context is in suspened state and must be resumed via start with TMRESUME specified.
If TMFAIL is specified, the portion of work has failed. The resource manager may mark the transaction as
rollback-only
If TMSUCCESS is specified, the portion of work has completed successfully.
Parameters: xid - A global transaction identifier that is the same as what was used previously in the start method. Parameters: flags - One of TMSUCCESS, TMFAIL, or TMSUSPEND throws: XAException - An error has occurred. Possible XAException values are XAER_RMERR, XAER_RMFAILED, XAER_NOTA,XAER_INVAL, XAER_PROTO, or XA_RB*. |
forget | public void forget(Xid xid) throws XAException(Code) | | Tell the resource manager to forget about a heuristically (MANUALLY) completed transaction branch.
Parameters: xid - A global transaction identifier throws: XAException - An error has occurred. Possible exception values are XAER_RMERR, XAER_RMFAIL, XAER_NOTA,XAER_INVAL, or XAER_PROTO. |
getSpecialRegisters | public List getSpecialRegisters()(Code) | | |
getTransactionTimeout | public int getTransactionTimeout() throws XAException(Code) | | Obtain the current transaction timeout value set for this XAResource instance. If
XAResource.setTransactionTimeout was not use prior to invoking this method, the return value is the
default timeout set for the resource manager; otherwise, the value used in the previous
setTransactionTimeout call is returned.
the transaction timeout value in seconds. throws: XAException - An error has occurred. Possible exception values are XAER_RMERR, XAER_RMFAIL. |
initForReuse | public void initForReuse()(Code) | | |
prepare | public int prepare(Xid xid) throws XAException(Code) | | Ask the resource manager to prepare for a transaction commit of the transaction specified in xid.
Parameters: xid - A global transaction identifier A value indicating the resource manager's vote on the outcome of the transaction. The possible valuesare: XA_RDONLY or XA_OK. If the resource manager wants to roll back the transaction, it should do so byraising an appropriate XAException in the prepare method. throws: XAException - An error has occurred. Possible exception values are: XA_RB*, XAER_RMERR, XAER_RMFAIL,XAER_NOTA, XAER_INVAL, or XAER_PROTO. |
recover | public Xid[] recover(int flag) throws XAException(Code) | | Obtain a list of prepared transaction branches from a resource manager. The transaction manager calls this method
during recovery to obtain the list of transaction branches that are currently in prepared or heuristically
completed states.
Parameters: flag - One of TMSTARTRSCAN, TMENDRSCAN, TMNOFLAGS. TMNOFLAGS must be used when no other flags are set inflags. The resource manager returns zero or more XIDs for the transaction branches that are currently in aprepared or heuristically completed state. If an error occurs during the operation, the resource managershould raise the appropriate XAException. throws: XAException - An error has occurred. Possible values are XAER_RMERR, XAER_RMFAIL, XAER_INVAL, andXAER_PROTO. |
removeXaresFromSameRMchain | protected void removeXaresFromSameRMchain()(Code) | | |
rollback | public void rollback(Xid xid) throws XAException(Code) | | Inform the resource manager to roll back work done on behalf of a transaction branch
Parameters: xid - A global transaction identifier throws: XAException - An error has occurred |
setTransactionTimeout | public boolean setTransactionTimeout(int seconds) throws XAException(Code) | | Set the current transaction timeout value for this XAResource instance. This value overwrites the
default transaction timeout value in the resource manager. The newly assigned timeout value is effective for the
life of this XAResource instance unless a new value is set.
Parameters: seconds - the transaction timeout value in seconds. throws: XAException - An error has occurred. Possible exception values are XAER_RMERR, XAER_RMFAIL, or XAER_INVAL. |
start | public synchronized void start(Xid xid, int flags) throws XAException(Code) | | Start work on behalf of a transaction branch specified in xid
Parameters: xid - A global transaction identifier to be associated with the resource Parameters: flags - One of TMNOFLAGS, TMJOIN, or TMRESUME throws: XAException - An error has occurred. Possible exceptions * are XA_RB*, XAER_RMERR, XAER_RMFAIL,XAER_DUPID, XAER_OUTSIDE, XAER_NOTA, XAER_INVAL, or XAER_PROTO. |
throwXAException | protected void throwXAException(int rc, boolean resetFlag) throws XAException(Code) | | |
xaRetValErrorAccumSQL | protected int xaRetValErrorAccumSQL(NetXACallInfo callInfo, int currentRC)(Code) | | |
xidsEqual | public static boolean xidsEqual(Xid xid1, Xid xid2)(Code) | | |
|
|