|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.sql.execute.GenericTriggerExecutor
public abstract class GenericTriggerExecutor
A trigger executor is an object that executes a trigger. It is subclassed by row and statement executors.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
GenericTriggerExecutor(InternalTriggerExecutionContext tec,
TriggerDescriptor triggerd,
Activation activation,
LanguageConnectionContext lcc)
Constructor |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
GenericTriggerExecutor(InternalTriggerExecutionContext tec,
TriggerDescriptor triggerd,
Activation activation,
LanguageConnectionContext lcc)
tec - the execution contexttriggerd - the trigger descriptoractivation - the activationlcc - the lcc| Method Detail |
|---|
abstract 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 sql
StandardException - on error or user exception
from trigger action
protected SPSDescriptor getWhenClause()
throws StandardException
StandardException
protected SPSDescriptor getAction()
throws StandardException
StandardException
protected void executeSPS(SPSDescriptor sps)
throws StandardException
StandardException - on error
protected void clearSPS()
throws StandardException
StandardException - on error
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||