|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.iapi.services.context.ContextImpl
org.apache.derby.jdbc.XATransactionState
Field Summary | |
private EmbedXAConnection |
associatedResource
|
(package private) int |
associationState
Association state of the transaction. |
EmbedConnection |
conn
|
(package private) EmbedXAConnection |
creatingResource
|
(package private) boolean |
isPrepared
has this transaction been prepared. |
(package private) int |
rollbackOnlyCode
|
(package private) java.util.HashMap |
suspendedList
When an XAResource suspends a transaction (end(TMSUSPEND)) it must be resumed using the same XAConnection. |
(package private) static int |
T0_NOT_ASSOCIATED
|
(package private) static int |
T1_ASSOCIATED
|
(package private) static int |
TC_COMPLETED
|
(package private) static int |
TRO_DEADLOCK
Rollback-only due to deadlock |
(package private) static int |
TRO_FAIL
Rollback-only due to end(TMFAIL) |
(package private) XAXactId |
xid
|
Fields inherited from class org.apache.derby.iapi.services.context.ContextImpl |
|
Constructor Summary | |
(package private) |
XATransactionState(ContextManager cm,
EmbedConnection conn,
EmbedXAConnection resource,
XAXactId xid)
|
Method Summary | |
void |
cleanupOnError(java.lang.Throwable t)
Contexts will be passed errors that are caught by the outer system when they are serious enough to require corrective action. |
(package private) boolean |
end(EmbedXAConnection resource,
int flags,
boolean endingCurrentXid)
|
(package private) void |
start(EmbedXAConnection resource,
int flags)
|
Methods inherited from class org.apache.derby.iapi.services.context.ContextImpl |
appendErrorInfo, getContextManager, getIdName, isLastHandler, popMe, pushMe |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final int TRO_DEADLOCK
static final int TRO_FAIL
static final int T0_NOT_ASSOCIATED
static final int T1_ASSOCIATED
static final int TC_COMPLETED
public final EmbedConnection conn
final EmbedXAConnection creatingResource
private EmbedXAConnection associatedResource
final XAXactId xid
java.util.HashMap suspendedList
int associationState
int rollbackOnlyCode
boolean isPrepared
Constructor Detail |
XATransactionState(ContextManager cm, EmbedConnection conn, EmbedXAConnection resource, XAXactId xid)
Method Detail |
public void cleanupOnError(java.lang.Throwable t)
Context
Contexts must release all their resources before removing themselves from their context manager.
The context manager will "unwind" the contexts during cleanup in the reverse order they were placed on its global stack.
If error is an instance of StandardException then an implementation of this method may throw a new exception if and only if the new exception is an instance of StandardException that is more severe than the original error or the new exception is a not an instance of StandardException (e.g java.lang.NullPointerException).
void start(EmbedXAConnection resource, int flags) throws javax.transaction.xa.XAException
javax.transaction.xa.XAException
boolean end(EmbedXAConnection resource, int flags, boolean endingCurrentXid) throws javax.transaction.xa.XAException
javax.transaction.xa.XAException
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |