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

Defines the information about a trigger on a table of the database, such as the event on which is fired and the procedure to execute. More...

Inheritance diagram for Deveel.Data.Sql.Triggers.TriggerInfo:
Deveel.Data.Sql.IObjectInfo

Public Member Functions

 TriggerInfo (ObjectName triggerName, TriggerEventType eventType)
 Constructs a new callback trigger information object with the given name, and the event at which it should be fired. More...
 
 TriggerInfo (ObjectName triggerName, TriggerType triggerType, TriggerEventType eventType, ObjectName tableName)
 Constructs a new trigger information object with the given name, the name of the table on which it is attached and the event at which it should be fired. More...
 

Properties

ObjectName TriggerName [get, private set]
 Gets the fully qualified name of the trigger. More...
 
TriggerEventType EventType [get, private set]
 Gets the modification event on the attached table at which to fire the trigger. More...
 
TriggerType TriggerType [get, private set]
 Gets the type of trigger. More...
 
ObjectName TableName [get, private set]
 Gets the fully qualified name of the database table on which to attach the trigger. More...
 
TriggerBody Body [get, private set]
 Gets the procedural body of the trigger to be executed. More...
 
ObjectName ProcedureName [get, set]
 Gets or sets the name of a stored procedure to be executed when the trigger is fired. More...
 
Type ExternalType [get, set]
 
string ExternalMethod [get, set]
 
ICollection< SqlExpressionArguments [get, private set]
 
ObjectName IObjectInfo. FullName [get]
 
DbObjectType IObjectInfo. ObjectType [get]
 
- Properties inherited from Deveel.Data.Sql.IObjectInfo
DbObjectType ObjectType [get]
 
ObjectName FullName [get]
 

Detailed Description

Defines the information about a trigger on a table of the database, such as the event on which is fired and the procedure to execute.

Definition at line 29 of file TriggerInfo.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Triggers.TriggerInfo.TriggerInfo ( ObjectName  triggerName,
TriggerEventType  eventType 
)
inline

Constructs a new callback trigger information object with the given name, and the event at which it should be fired.

Parameters
triggerNameThe fully qualified name of the trigger.
eventTypeThe modification event at which to fire the trigger.
Exceptions
ArgumentNullExceptionThrown if triggerName is null

Definition at line 39 of file TriggerInfo.cs.

40  : this(triggerName, TriggerType.Callback, eventType, null) {
41  }
TriggerType TriggerType
Gets the type of trigger.
Definition: TriggerInfo.cs:90
Deveel.Data.Sql.Triggers.TriggerInfo.TriggerInfo ( ObjectName  triggerName,
TriggerType  triggerType,
TriggerEventType  eventType,
ObjectName  tableName 
)
inline

Constructs a new trigger information object with the given name, the name of the table on which it is attached and the event at which it should be fired.

Parameters
triggerNameThe fully qualified name of the trigger.
eventTypeThe modification event on the given table at which to fire the trigger.
triggerTypeThe type of trigger.
tableNameThe fully qualified name of the table on which to attach the trigger.
Exceptions
ArgumentNullExceptionThrown if triggerName is null

Definition at line 57 of file TriggerInfo.cs.

57  {
58  if (triggerName == null)
59  throw new ArgumentNullException("triggerName");
60 
61  if (triggerType == TriggerType.Callback &&
62  tableName != null)
63  throw new ArgumentException("A CALLBACK TRIGGER cannot define any table to be attached to.");
64 
65  TriggerName = triggerName;
66  EventType = eventType;
67  TableName = tableName;
68  TriggerType = triggerType;
69 
70  Arguments = new List<SqlExpression>();
71 
72  Body = new TriggerBody(this);
73  }
TriggerBody Body
Gets the procedural body of the trigger to be executed.
Definition: TriggerInfo.cs:101
ICollection< SqlExpression > Arguments
Definition: TriggerInfo.cs:113
TriggerEventType EventType
Gets the modification event on the attached table at which to fire the trigger.
Definition: TriggerInfo.cs:84
ObjectName TriggerName
Gets the fully qualified name of the trigger.
Definition: TriggerInfo.cs:78
ObjectName TableName
Gets the fully qualified name of the database table on which to attach the trigger.
Definition: TriggerInfo.cs:96
TriggerType TriggerType
Gets the type of trigger.
Definition: TriggerInfo.cs:90

Property Documentation

ICollection<SqlExpression> Deveel.Data.Sql.Triggers.TriggerInfo.Arguments
getprivate set

Definition at line 113 of file TriggerInfo.cs.

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

Gets the procedural body of the trigger to be executed.

Definition at line 101 of file TriggerInfo.cs.

TriggerEventType Deveel.Data.Sql.Triggers.TriggerInfo.EventType
getprivate set

Gets the modification event on the attached table at which to fire the trigger.

Definition at line 84 of file TriggerInfo.cs.

string Deveel.Data.Sql.Triggers.TriggerInfo.ExternalMethod
getset

Definition at line 111 of file TriggerInfo.cs.

Type Deveel.Data.Sql.Triggers.TriggerInfo.ExternalType
getset

Definition at line 109 of file TriggerInfo.cs.

ObjectName IObjectInfo. Deveel.Data.Sql.Triggers.TriggerInfo.FullName
getprivate

Definition at line 115 of file TriggerInfo.cs.

DbObjectType IObjectInfo. Deveel.Data.Sql.Triggers.TriggerInfo.ObjectType
getprivate

Definition at line 119 of file TriggerInfo.cs.

ObjectName Deveel.Data.Sql.Triggers.TriggerInfo.ProcedureName
getset

Gets or sets the name of a stored procedure to be executed when the trigger is fired.

Definition at line 107 of file TriggerInfo.cs.

ObjectName Deveel.Data.Sql.Triggers.TriggerInfo.TableName
getprivate set

Gets the fully qualified name of the database table on which to attach the trigger.

Definition at line 96 of file TriggerInfo.cs.

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

Gets the fully qualified name of the trigger.

Definition at line 78 of file TriggerInfo.cs.

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

Gets the type of trigger.

See also
TriggerType

Definition at line 90 of file TriggerInfo.cs.


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