class GenericExecutionContext extends ContextImpl implements ExecutionContext
An execution context is expected to be on the stack for the duration of the connection.
Modifier and Type | Field and Description |
---|---|
private ExecutionFactory |
execFactory |
CONTEXT_ID
Constructor and Description |
---|
GenericExecutionContext(ContextManager cm,
ExecutionFactory ef) |
Modifier and Type | Method and 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.
|
ExecutionFactory |
getExecutionFactory()
Get the ExecutionFactory from this ExecutionContext.
|
appendErrorInfo, getContextManager, getIdName, isLastHandler, popMe, pushMe
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextManager, getIdName, isLastHandler, popMe, pushMe
private ExecutionFactory execFactory
GenericExecutionContext(ContextManager cm, ExecutionFactory ef)
public ExecutionFactory getExecutionFactory()
ExecutionContext
getExecutionFactory
in interface ExecutionContext
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).
cleanupOnError
in interface Context
StandardException
- Thrown on errorApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.