DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
TableEvent.cs
Go to the documentation of this file.
1 //
2 // Copyright 2010-2015 Deveel
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 
17 using System;
18 
19 using Deveel.Data.Diagnostics;
20 using Deveel.Data.Sql.Tables;
21 
22 namespace Deveel.Data.Sql.Triggers {
26  public sealed class TableEvent : Event {
27  internal TableEvent(ITable table, TriggerEventType eventType, RowId oldRowId, Row newRow) {
28  if (table == null)
29  throw new ArgumentNullException("table");
30 
31  Table = table;
32  EventType = eventType;
33  OldRowId = oldRowId;
34  NewRow = newRow;
35  }
36 
40  public ITable Table { get; private set; }
41 
45  public TriggerEventType EventType { get; private set; }
46 
50  public RowId OldRowId { get; private set; }
51 
55  public Row NewRow { get; private set; }
56  }
57 }
Defines the contract to access the data contained into a table of a database.
Definition: ITable.cs:40
TriggerEventType
The different types of high layer trigger events.
TableEvent(ITable table, TriggerEventType eventType, RowId oldRowId, Row newRow)
Definition: TableEvent.cs:27
A single row in a table of a database.
Definition: Row.cs:44
Exposes the context of an event fired on a table.
Definition: TableEvent.cs:26
Defines the value of a ROWID object, that is a unique reference within a database system to a single ...
Definition: RowId.cs:24