DatabaseContext
, Context
final class DatabaseContextImpl extends ContextImpl implements DatabaseContext
Modifier and Type | Field | Description |
---|---|---|
private Database |
db |
CONTEXT_ID
Constructor | Description |
---|---|
DatabaseContextImpl(ContextManager cm,
Database db) |
Modifier and Type | Method | Description |
---|---|---|
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.
|
boolean |
equals(java.lang.Object other) |
|
private static ContextService |
getContextService() |
Privileged lookup of the ContextService.
|
Database |
getDatabase() |
|
private static ModuleFactory |
getMonitor() |
Privileged Monitor lookup.
|
int |
hashCode() |
getContextManager, getIdName, isLastHandler, popMe, pushMe
appendErrorInfo, getContextManager, getIdName, isLastHandler, popMe, pushMe
private final Database db
DatabaseContextImpl(ContextManager cm, Database db)
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).
cleanupOnError
in interface Context
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Database getDatabase()
getDatabase
in interface DatabaseContext
private static ContextService getContextService()
private static ModuleFactory getMonitor()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.