public class TriggerEventActivator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Activation |
activation |
private ConnectionContext |
cc |
private int |
dmlType |
private GenericTriggerExecutor[][] |
executors |
private LanguageConnectionContext |
lcc |
private java.lang.String |
statementText |
private UUID |
tableId |
private java.lang.String |
tableName |
private InternalTriggerExecutionContext |
tec |
private TriggerInfo |
triggerInfo |
Constructor and Description |
---|
TriggerEventActivator(LanguageConnectionContext lcc,
UUID tableId,
TriggerInfo triggerInfo,
int dmlType,
Activation activation,
java.util.Vector<AutoincrementCounter> aiCounters)
Basic constructor
|
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Clean up and release resources.
|
void |
notifyEvent(TriggerEvent event,
CursorResultSet brs,
CursorResultSet ars,
int[] colsReadFromTable)
Handle the given event.
|
(package private) void |
reopen()
Reopen the trigger activator.
|
private void |
setupExecutors(TriggerInfo triggerInfo) |
private LanguageConnectionContext lcc
private TriggerInfo triggerInfo
private InternalTriggerExecutionContext tec
private GenericTriggerExecutor[][] executors
private Activation activation
private ConnectionContext cc
private java.lang.String statementText
private int dmlType
private UUID tableId
private java.lang.String tableName
public TriggerEventActivator(LanguageConnectionContext lcc, UUID tableId, TriggerInfo triggerInfo, int dmlType, Activation activation, java.util.Vector<AutoincrementCounter> aiCounters) throws StandardException
lcc
- the lcctriggerInfo
- the trigger informationdmlType
- Type of DML for which this trigger is being fired.activation
- the activation.aiCounters
- vector of ai countersStandardException
- on errorvoid reopen() throws StandardException
StandardException
- on errorprivate void setupExecutors(TriggerInfo triggerInfo) throws StandardException
StandardException
public void notifyEvent(TriggerEvent event, CursorResultSet brs, CursorResultSet ars, int[] colsReadFromTable) throws StandardException
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 sqlStandardException
- on errorpublic void cleanup() throws StandardException
StandardException
- on unexpected errorApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.