public abstract class Interceptor
extends java.lang.Object
DefaultInterceptor
Modifier | Constructor and Description |
---|---|
protected |
Interceptor(Interceptor parent)
Creates a new interceptor and links it to the specified
parent interceptor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
call(CallContext cx,
Procedure proc,
Bindings bindings)
Calls a procedure with the specified bindings.
|
Interceptor |
getParent()
Returns the parent interceptor in the interceptor chain.
|
void |
releaseAll(CallContext cx,
boolean commit)
Releases all reserved adapter connections.
|
void |
reserve(CallContext cx,
Procedure proc)
Reserves all adapter connections needed for executing the
specified procedure.
|
protected Interceptor(Interceptor parent)
parent
- the parent interceptorpublic final Interceptor getParent()
public void reserve(CallContext cx, Procedure proc) throws ProcedureException
cx
- the procedure contextproc
- the procedure definitionProcedureException
- if the connections couldn't be
reservedpublic void releaseAll(CallContext cx, boolean commit)
cx
- the procedure contextcommit
- the commit (or rollback) flagpublic java.lang.Object call(CallContext cx, Procedure proc, Bindings bindings) throws ProcedureException
cx
- the procedure contextproc
- the procedure definitionbindings
- the procedure bindingsProcedureException
- if the call execution caused an
error