org.apache.derby.impl.sql.execute
Class RowTriggerExecutor

java.lang.Object
  extended byorg.apache.derby.impl.sql.execute.GenericTriggerExecutor
      extended byorg.apache.derby.impl.sql.execute.RowTriggerExecutor

public 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, lcc, tec, triggerd
 
Constructor Summary
(package private) RowTriggerExecutor(InternalTriggerExecutionContext tec, TriggerDescriptor triggerd, Activation activation, LanguageConnectionContext lcc)
          Constructor
 
Method Summary
(package private)  void fireTrigger(TriggerEvent event, CursorResultSet brs, CursorResultSet ars)
          Fire the trigger based on the event.
 
Methods inherited from class org.apache.derby.impl.sql.execute.GenericTriggerExecutor
clearSPS, executeSPS, getAction, getWhenClause
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowTriggerExecutor

RowTriggerExecutor(InternalTriggerExecutionContext tec,
                   TriggerDescriptor triggerd,
                   Activation activation,
                   LanguageConnectionContext lcc)
Constructor

Parameters:
tec - the execution context
triggerd - the trigger descriptor
activation - the activation
lcc - the lcc
Method Detail

fireTrigger

void fireTrigger(TriggerEvent event,
                 CursorResultSet brs,
                 CursorResultSet ars)
           throws StandardException
Fire the trigger based on the event.

Specified by:
fireTrigger in class GenericTriggerExecutor
Parameters:
event - the trigger event
brs - the before result set
ars - the after result set
Throws:
StandardExcetion - on error or general trigger exception
StandardException - on error or user exception from trigger action


Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.