DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Protected Member Functions | Package Functions | Properties | List of all members
Deveel.Data.Sql.Triggers.TriggerEvent Class Reference
Inheritance diagram for Deveel.Data.Sql.Triggers.TriggerEvent:
Deveel.Data.Diagnostics.Event Deveel.Data.Diagnostics.IEvent

Protected Member Functions

override void GetEventData (Dictionary< string, object > data)
 
- Protected Member Functions inherited from Deveel.Data.Diagnostics.Event
 Event ()
 
 Event (DateTimeOffset timeStamp)
 
virtual IEventSource OnSourceGet (IEventSource eventSource)
 
virtual IEventSource OnSourceSet (IEventSource eventSource)
 

Package Functions

 TriggerEvent (IEventSource source, ObjectName triggerName, ObjectName sourceName, TriggerEventType eventType, RowId oldRowId, Row newRow)
 

Properties

IEventSource Source [get, set]
 
ObjectName TriggerName [get, private set]
 
ObjectName SourceName [get, set]
 
TriggerEventType TriggerEventType [get, private set]
 
RowId OldRowId [get, set]
 
Row NewRow [get, set]
 
- Properties inherited from Deveel.Data.Diagnostics.Event
IEventSource EventSource [get, set]
 
DateTimeOffset TimeStamp [get, private set]
 
IDictionary< string, object > IEvent. EventData [get]
 
- Properties inherited from Deveel.Data.Diagnostics.IEvent
IEventSource EventSource [get, set]
 Gets the event source. More...
 
DateTimeOffset TimeStamp [get]
 
IDictionary< string, object > EventData [get]
 Gets additional event data that come with the event. More...
 

Detailed Description

Definition at line 24 of file TriggerEvent.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Triggers.TriggerEvent.TriggerEvent ( IEventSource  source,
ObjectName  triggerName,
ObjectName  sourceName,
TriggerEventType  eventType,
RowId  oldRowId,
Row  newRow 
)
inlinepackage

Definition at line 25 of file TriggerEvent.cs.

25  {
26  if (triggerName == null)
27  throw new ArgumentNullException("triggerName");
28  if (sourceName == null)
29  throw new ArgumentNullException("sourceName");
30 
31  Source = source;
32  TriggerName = triggerName;
33  SourceName = sourceName;
34  TriggerEventType = eventType;
35  OldRowId = oldRowId;
36  NewRow = newRow;
37  }

Member Function Documentation

override void Deveel.Data.Sql.Triggers.TriggerEvent.GetEventData ( Dictionary< string, object >  data)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Diagnostics.Event.

Definition at line 51 of file TriggerEvent.cs.

51  {
52  data["trigger.name"] = TriggerName.FullName;
53  data["trigger.eventType"] = TriggerEventType.ToString();
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;
58  }
int RowNumber
Gets the number of the column within the table referenced.
Definition: RowId.cs:58
string FullName
Gets the full reference name formatted.
Definition: ObjectName.cs:114
int TableId
Gets the unique identifier of the table the row is contained.
Definition: RowId.cs:53

Property Documentation

Row Deveel.Data.Sql.Triggers.TriggerEvent.NewRow
getset

Definition at line 49 of file TriggerEvent.cs.

RowId Deveel.Data.Sql.Triggers.TriggerEvent.OldRowId
getset

Definition at line 47 of file TriggerEvent.cs.

IEventSource Deveel.Data.Sql.Triggers.TriggerEvent.Source
getsetprivate

Definition at line 39 of file TriggerEvent.cs.

ObjectName Deveel.Data.Sql.Triggers.TriggerEvent.SourceName
getset

Definition at line 43 of file TriggerEvent.cs.

TriggerEventType Deveel.Data.Sql.Triggers.TriggerEvent.TriggerEventType
getprivate set

Definition at line 45 of file TriggerEvent.cs.

ObjectName Deveel.Data.Sql.Triggers.TriggerEvent.TriggerName
getprivate set

Definition at line 41 of file TriggerEvent.cs.


The documentation for this class was generated from the following file: