final class DatabaseContextImpl extends ContextImpl implements DatabaseContext
| Modifier and Type | Field and Description |
|---|---|
private Database |
db |
CONTEXT_ID| Constructor and Description |
|---|
DatabaseContextImpl(ContextManager cm,
Database db) |
| Modifier and Type | Method and 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) |
Database |
getDatabase() |
int |
hashCode() |
appendErrorInfo, getContextManager, getIdName, isLastHandler, popMe, pushMeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetContextManager, getIdName, isLastHandler, popMe, pushMeprivate final Database db
DatabaseContextImpl(ContextManager cm, Database db)
public void cleanupOnError(java.lang.Throwable t)
ContextContexts 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 Contextpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic Database getDatabase()
getDatabase in interface DatabaseContextApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.