org.apache.derby.impl.sql.execute
Class TriggerEventActivator
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.TriggerEventActivator
-
public class TriggerEventActivator extends java.lang.ObjectResponsible for firing a trigger or set of triggers based on an event.
-
-
Constructor Summary
Constructors Constructor and Description TriggerEventActivator(LanguageConnectionContext lcc, UUID tableId, TriggerInfo triggerInfo, int dmlType, Activation activation, java.util.Vector<AutoincrementCounter> aiCounters)Basic constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcleanup()Clean up and release resources.voidnotifyEvent(TriggerEvent event, CursorResultSet brs, CursorResultSet ars, int[] colsReadFromTable)Handle the given event.
-
-
-
Constructor Detail
-
TriggerEventActivator
public TriggerEventActivator(LanguageConnectionContext lcc, UUID tableId, TriggerInfo triggerInfo, int dmlType, Activation activation, java.util.Vector<AutoincrementCounter> aiCounters) throws StandardException
Basic constructor- Parameters:
lcc- the lcctriggerInfo- the trigger informationdmlType- Type of DML for which this trigger is being fired.activation- the activation.aiCounters- vector of ai counters- Throws:
StandardException- on error
-
-
Method Detail
-
notifyEvent
public void notifyEvent(TriggerEvent event, CursorResultSet brs, CursorResultSet ars, int[] colsReadFromTable) throws StandardException
Handle the given event.- Parameters:
event- a trigger eventbrs- the before result set. Typically a TemporaryRowHolderResultSet but sometimes a BulkTableScanResultSetars- the after result set. Typically a TemporaryRowHolderResultSet but sometimes a BulkTableScanResultSetcolsReadFromTable- columns required from the trigger table by the triggering sql- Throws:
StandardException- on error
-
cleanup
public void cleanup() throws StandardExceptionClean up and release resources.- Throws:
StandardException- on unexpected error
-
-
DataMelt 3.0 © DataMelt by jWork.ORG