DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Package Functions | Properties | Private Member Functions | Private Attributes | List of all members
Deveel.Data.Sql.Triggers.TriggerBody Class Reference

Public Member Functions

void AddStatement (SqlStatement statement)
 

Package Functions

 TriggerBody (TriggerInfo triggerInfo)
 

Properties

TriggerInfo TriggerInfo [get, private set]
 

Private Member Functions

void AssertStatementIsAllowed (SqlStatement statement)
 

Private Attributes

readonly List< SqlStatementstatements
 

Detailed Description

Definition at line 23 of file TriggerBody.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Triggers.TriggerBody.TriggerBody ( TriggerInfo  triggerInfo)
inlinepackage

Definition at line 26 of file TriggerBody.cs.

26  {
27  if (triggerInfo == null)
28  throw new ArgumentNullException("triggerInfo");
29 
30  TriggerInfo = triggerInfo;
31 
32  statements = new List<SqlStatement>();
33  }
readonly List< SqlStatement > statements
Definition: TriggerBody.cs:24

Member Function Documentation

void Deveel.Data.Sql.Triggers.TriggerBody.AddStatement ( SqlStatement  statement)
inline

Definition at line 42 of file TriggerBody.cs.

42  {
43  if (statement == null)
44  throw new ArgumentNullException("statement");
45 
46  if (TriggerInfo.TriggerType != TriggerType.Procedure)
47  throw new ArgumentException(String.Format("The trigger '{0}' is not a PROCEDURE TRIGGER and cannot have any body.",
49 
50  AssertStatementIsAllowed(statement);
51 
52  statements.Add(statement);
53  }
A long string in the system.
ObjectName TriggerName
Gets the fully qualified name of the trigger.
Definition: TriggerInfo.cs:78
readonly List< SqlStatement > statements
Definition: TriggerBody.cs:24
TriggerType
Enumerates the types of triggers, that can be volatile (like the Callback) or stored in the database...
Definition: TriggerType.cs:22
void AssertStatementIsAllowed(SqlStatement statement)
Definition: TriggerBody.cs:37
TriggerType TriggerType
Gets the type of trigger.
Definition: TriggerInfo.cs:90
void Deveel.Data.Sql.Triggers.TriggerBody.AssertStatementIsAllowed ( SqlStatement  statement)
inlineprivate

Definition at line 37 of file TriggerBody.cs.

37  {
38  // TODO: validate this statement
39  }

Member Data Documentation

readonly List<SqlStatement> Deveel.Data.Sql.Triggers.TriggerBody.statements
private

Definition at line 24 of file TriggerBody.cs.

Property Documentation

TriggerInfo Deveel.Data.Sql.Triggers.TriggerBody.TriggerInfo
getprivate set

Definition at line 35 of file TriggerBody.cs.


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