public abstract class GenericTriggerExecutor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private SPSDescriptor |
action |
private boolean |
actionRetrieved |
protected Activation |
activation |
protected LanguageConnectionContext |
lcc |
private ExecPreparedStatement |
ps |
private Activation |
spsActivation |
protected InternalTriggerExecutionContext |
tec |
protected TriggerDescriptor |
triggerd |
private SPSDescriptor |
whenClause |
private boolean |
whenClauseRetrieved |
Constructor and Description |
---|
GenericTriggerExecutor(InternalTriggerExecutionContext tec,
TriggerDescriptor triggerd,
Activation activation,
LanguageConnectionContext lcc)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearSPS()
Cleanup after executing an sps.
|
protected void |
executeSPS(SPSDescriptor sps)
Execute the given stored prepared statement.
|
(package private) abstract void |
fireTrigger(TriggerEvent event,
CursorResultSet brs,
CursorResultSet ars,
int[] colsReadFromTable)
Fire the trigger based on the event.
|
protected SPSDescriptor |
getAction() |
protected SPSDescriptor |
getWhenClause() |
protected InternalTriggerExecutionContext tec
protected TriggerDescriptor triggerd
protected Activation activation
protected LanguageConnectionContext lcc
private boolean whenClauseRetrieved
private boolean actionRetrieved
private SPSDescriptor whenClause
private SPSDescriptor action
private ExecPreparedStatement ps
private Activation spsActivation
GenericTriggerExecutor(InternalTriggerExecutionContext tec, TriggerDescriptor triggerd, Activation activation, LanguageConnectionContext lcc)
tec
- the execution contexttriggerd
- the trigger descriptoractivation
- the activationlcc
- the lccabstract void fireTrigger(TriggerEvent event, CursorResultSet brs, CursorResultSet ars, int[] colsReadFromTable) throws StandardException
event
- the trigger eventbrs
- the before result setars
- the after result setcolsReadFromTable
- columns required from the trigger table
by the triggering sqlStandardException
- on error or user exception
from trigger actionprotected SPSDescriptor getWhenClause() throws StandardException
StandardException
protected SPSDescriptor getAction() throws StandardException
StandardException
protected void executeSPS(SPSDescriptor sps) throws StandardException
StandardException
- on errorprotected void clearSPS() throws StandardException
StandardException
- on errorApache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.