Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

pack-priv Class RowTriggerExecutor

extends GenericTriggerExecutor
Class Inheritance
Imports
org.apache.derby.iapi.sql.execute.CursorResultSet, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.sql.dictionary.TriggerDescriptor, org.apache.derby.iapi.sql.conn.LanguageConnectionContext, org.apache.derby.iapi.sql.Activation

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

Inherited from org.apache.derby.impl.sql.execute.GenericTriggerExecutor:
activationtectriggerd

Constructor Summary

AccessConstructor and Description
pack-priv
RowTriggerExecutor(InternalTriggerExecutionContext
the execution context
tec
,
TriggerDescriptor
the trigger descriptor
triggerd
,
Activation
the activation
activation
,
LanguageConnectionContext
the lcc
lcc
)

Constructor

Method Summary

Modifier and TypeMethod and Description
pack-priv void
fireTrigger(TriggerEvent
the trigger event
event
,
CursorResultSet
the before result set
brs
,
CursorResultSet
the after result set
ars
,
int[]
columns required from the trigger table by the triggering sql
colsReadFromTable
)

Implements abstract org.apache.derby.impl.sql.execute.GenericTriggerExecutor.fireTrigger.

Fire the trigger based on the event.

Inherited from org.apache.derby.impl.sql.execute.GenericTriggerExecutor:
clearSPSexecuteWhenClauseAndAction

Constructor Detail

RowTriggerExecutorback to summary
pack-priv RowTriggerExecutor(InternalTriggerExecutionContext tec, TriggerDescriptor triggerd, Activation activation, LanguageConnectionContext lcc)

Constructor

Parameters
tec:InternalTriggerExecutionContext

the execution context

triggerd:TriggerDescriptor

the trigger descriptor

activation:Activation

the activation

lcc:LanguageConnectionContext

the lcc

Method Detail

fireTriggerback to summary
pack-priv void fireTrigger(TriggerEvent event, CursorResultSet brs, CursorResultSet ars, int[] colsReadFromTable) throws StandardException

Implements abstract org.apache.derby.impl.sql.execute.GenericTriggerExecutor.fireTrigger.

Fire the trigger based on the event.

Parameters
event:TriggerEvent

the trigger event

brs:CursorResultSet

the before result set

ars:CursorResultSet

the after result set

colsReadFromTable:int[]

columns required from the trigger table by the triggering sql

Exceptions
StandardException:
on error or general trigger exception