|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.sql.execute.TriggerEventActivator
public class TriggerEventActivator
Responsible for firing a trigger or set of triggers based on an event.
| Field Summary | |
|---|---|
private Activation |
activation
|
private java.util.Vector |
aiCounters
|
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 TransactionController |
tc
|
private InternalTriggerExecutionContext |
tec
|
private TriggerInfo |
triggerInfo
|
| Constructor Summary | |
|---|---|
TriggerEventActivator(LanguageConnectionContext lcc,
TransactionController tc,
UUID tableId,
TriggerInfo triggerInfo,
int dmlType,
Activation activation,
java.util.Vector aiCounters)
Basic constructor |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private LanguageConnectionContext lcc
private TransactionController tc
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
private java.util.Vector aiCounters
| Constructor Detail |
|---|
public TriggerEventActivator(LanguageConnectionContext lcc,
TransactionController tc,
UUID tableId,
TriggerInfo triggerInfo,
int dmlType,
Activation activation,
java.util.Vector aiCounters)
throws StandardException
lcc - the lcctc - the xact controllertriggerInfo - the trigger informationdmlType - Type of DML for which this trigger is being fired.activation - the activation.aiCounters - vector of ai counters
StandardException - on error| Method Detail |
|---|
void reopen()
throws StandardException
StandardException - on error
private 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 sql
StandardException - on error
public void cleanup()
throws StandardException
StandardException - on unexpected error
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||