|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.iapi.services.context.ContextImpl
Contexts are created and used to manage the execution environment. They provide a convenient location for storing globals organized by the module using the globals.
We provide this abstract class for other implementations to use so that they can simply add fields and operations on them. To be usable by the context manager, the subclasses must define CleanupOnError and call super() in any constructor.
Contexts assist in cleanup when errors are caught in the outer block.
Contexts implement the sanity interface to check and provide information about their contents.
Field Summary | |
private ContextManager |
myContextManager
|
private java.lang.String |
myIdName
|
Constructor Summary | |
protected |
ContextImpl(ContextManager cm,
java.lang.String id)
|
Method Summary | |
java.lang.StringBuffer |
appendErrorInfo()
|
ContextManager |
getContextManager()
Returns the context manager that has stored this context in its stack. |
java.lang.String |
getIdName()
Returns the current id name associated with this context. |
boolean |
isLastHandler(int severity)
Return whether or not this context is the "last" handler for a the specified severity level. |
void |
popMe()
Pop myself of the context stack. |
void |
pushMe()
Push myself onto my context stack. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.derby.iapi.services.context.Context |
cleanupOnError |
Field Detail |
private final java.lang.String myIdName
private final ContextManager myContextManager
Constructor Detail |
protected ContextImpl(ContextManager cm, java.lang.String id)
Method Detail |
public final ContextManager getContextManager()
Context
getContextManager
in interface Context
Context.getContextManager()
public final java.lang.String getIdName()
Context
A default Id name should be defined in each specific context interface as a static final field with the name CONTEXT_ID. For example, see org.apache.derby.iapi.sql.compile.CompilerContext.CONTEXT_ID.
getIdName
in interface Context
Context.getIdName()
public final void pushMe()
Context
pushMe
in interface Context
public final void popMe()
Context
popMe
in interface Context
Context.popMe()
public boolean isLastHandler(int severity)
Context
isLastHandler
in interface Context
Context.isLastHandler(int)
public java.lang.StringBuffer appendErrorInfo()
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |