| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | cleanupOnError(Throwable
The original error t)Implements org. Contexts will be passed errors that are caught by the outer system when they are serious enough to require corrective action. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| private static ContextService | |
| public Database | |
| private static ModuleFactory | |
| public int |
| db | back to summary |
|---|---|
| private final Database db | |
| DatabaseContextImpl | back to summary |
|---|---|
| pack-priv DatabaseContextImpl(ContextManager cm, Database db) | |
| cleanupOnError | back to summary |
|---|---|
| public void cleanupOnError(Throwable t) Implements org. Doc from org. Contexts will be passed errors that are caught
by the outer system when they are serious enough
to require corrective action. They will be told
what the error is, so that they can react appropriately.
Most of the time, the contexts will react by either
doing nothing or by removing themselves from the
context manager. If there are no other references
to the context, removing itself from the manager
equates to freeing it.
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).
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getContextService | back to summary |
|---|---|
| private static ContextService getContextService() Must be private so that user code can't call this entry point. | |
| getDatabase | back to summary |
|---|---|
| public Database getDatabase() Implements org. | |
| getMonitor | back to summary |
|---|---|
| private static ModuleFactory getMonitor() Must be private so that user code can't call this entry point. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |