18 using System.Collections.Generic;
23 namespace Deveel.Data.Sql.Triggers {
26 if (triggerName == null)
27 throw new ArgumentNullException(
"triggerName");
28 if (sourceName == null)
29 throw new ArgumentNullException(
"sourceName");
32 TriggerName = triggerName;
33 SourceName = sourceName;
47 public RowId OldRowId {
get; set; }
49 public Row NewRow {
get; set; }
51 protected override void GetEventData(Dictionary<string, object> data) {
52 data[
"trigger.name"] = TriggerName.FullName;
54 data[
"trigger.source"] = SourceName.FullName;
55 data[
"trigger.old.tableId"] = OldRowId.TableId;
56 data[
"trigger.old.rowNumber"] = OldRowId.RowNumber;
57 data[
"trigger.new"] = NewRow;
TriggerEventType
The different types of high layer trigger events.
Describes the name of an object within a database.
A single row in a table of a database.
override void GetEventData(Dictionary< string, object > data)
Defines the value of a ROWID object, that is a unique reference within a database system to a single ...
TriggerEvent(IEventSource source, ObjectName triggerName, ObjectName sourceName, TriggerEventType eventType, RowId oldRowId, Row newRow)
Represents the origin of system events, providing a mechanism to fill the metadata before dispatching...