Class StatementTriggerExecutor
java.lang.Object
org.apache.derby.impl.sql.execute.GenericTriggerExecutor
org.apache.derby.impl.sql.execute.StatementTriggerExecutor
A statement trigger executor is an object that executes
a statement trigger. It is instantiated at execution
time. There is one per statement trigger.
-
Field Summary
Fields inherited from class org.apache.derby.impl.sql.execute.GenericTriggerExecutor
activation, tec, triggerd
-
Constructor Summary
ConstructorsConstructorDescriptionStatementTriggerExecutor
(InternalTriggerExecutionContext tec, TriggerDescriptor triggerd, Activation activation, LanguageConnectionContext lcc) Constructor -
Method Summary
Modifier and TypeMethodDescription(package private) void
fireTrigger
(TriggerEvent event, CursorResultSet brs, CursorResultSet ars, int[] colsReadFromTable) Fire the trigger based on the event.Methods inherited from class org.apache.derby.impl.sql.execute.GenericTriggerExecutor
clearSPS, executeWhenClauseAndAction
-
Constructor Details
-
StatementTriggerExecutor
StatementTriggerExecutor(InternalTriggerExecutionContext tec, TriggerDescriptor triggerd, Activation activation, LanguageConnectionContext lcc) Constructor- Parameters:
tec
- the execution contexttriggerd
- the trigger descriptoractivation
- the activationlcc
- the lcc
-
-
Method Details
-
fireTrigger
void fireTrigger(TriggerEvent event, CursorResultSet brs, CursorResultSet ars, int[] colsReadFromTable) throws StandardException Fire the trigger based on the event.- Specified by:
fireTrigger
in classGenericTriggerExecutor
- Parameters:
event
- the trigger eventbrs
- the before result setars
- the after result setcolsReadFromTable
- columns required from the trigger table by the triggering sql- Throws:
StandardException
- on error or general trigger exception
-