Class RowTriggerExecutor
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.GenericTriggerExecutor
-
- org.apache.derby.impl.sql.execute.RowTriggerExecutor
-
class RowTriggerExecutor extends GenericTriggerExecutor
A row trigger executor is an object that executes a row trigger. It is instantiated at execution time. There is one per row trigger.
-
-
Field Summary
-
Fields inherited from class org.apache.derby.impl.sql.execute.GenericTriggerExecutor
activation, tec, triggerd
-
-
Constructor Summary
Constructors Constructor Description RowTriggerExecutor(InternalTriggerExecutionContext tec, TriggerDescriptor triggerd, Activation activation, LanguageConnectionContext lcc)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidfireTrigger(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 Detail
-
RowTriggerExecutor
RowTriggerExecutor(InternalTriggerExecutionContext tec, TriggerDescriptor triggerd, Activation activation, LanguageConnectionContext lcc)
Constructor- Parameters:
tec- the execution contexttriggerd- the trigger descriptoractivation- the activationlcc- the lcc
-
-
Method Detail
-
fireTrigger
void fireTrigger(TriggerEvent event, CursorResultSet brs, CursorResultSet ars, int[] colsReadFromTable) throws StandardException
Fire the trigger based on the event.- Specified by:
fireTriggerin 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:
StandardExcetion- on error or general trigger exceptionStandardException- on error or user exception from trigger action
-
-