Context
final class XactContext extends ContextImpl
Modifier and Type | Field | Description |
---|---|---|
private boolean |
abortAll |
|
private RawStoreFactory |
factory |
|
private RawTransaction |
xact |
Constructor | Description |
---|---|
XactContext(ContextManager cm,
java.lang.String name,
Xact xact,
boolean abortAll,
RawStoreFactory factory) |
Modifier and Type | Method | Description |
---|---|---|
void |
cleanupOnError(java.lang.Throwable error) |
Contexts will be passed errors that are caught
by the outer system when they are serious enough
to require corrective action.
|
(package private) RawStoreFactory |
getFactory() |
|
(package private) RawTransaction |
getTransaction() |
|
(package private) void |
substituteTransaction(Xact newTran) |
appendErrorInfo, getContextManager, getIdName, isLastHandler, popMe, pushMe
private RawTransaction xact
private RawStoreFactory factory
private boolean abortAll
XactContext(ContextManager cm, java.lang.String name, Xact xact, boolean abortAll, RawStoreFactory factory)
public void cleanupOnError(java.lang.Throwable error) throws StandardException
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).
StandardException
- Standard Derby error policyRawTransaction getTransaction()
RawStoreFactory getFactory()
void substituteTransaction(Xact newTran)
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.