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

Static Public Member Functions

static void FireTriggers (this IQuery context, TableEvent tableEvent)
 
static void CreateTrigger (this IQuery context, TriggerInfo triggerInfo)
 
static void CreateCallbackTrigger (this IQuery context, ObjectName triggerName, TriggerEventType eventType)
 
static bool TriggerExists (this IQuery context, ObjectName triggerName)
 

Detailed Description

Definition at line 22 of file QueryExtensions.cs.

Member Function Documentation

static void Deveel.Data.Sql.Triggers.QueryExtensions.CreateCallbackTrigger ( this IQuery  context,
ObjectName  triggerName,
TriggerEventType  eventType 
)
inlinestatic

Definition at line 35 of file QueryExtensions.cs.

35  {
36  context.CreateTrigger(new TriggerInfo(triggerName, eventType));
37  }
static void Deveel.Data.Sql.Triggers.QueryExtensions.CreateTrigger ( this IQuery  context,
TriggerInfo  triggerInfo 
)
inlinestatic

Definition at line 31 of file QueryExtensions.cs.

31  {
32  context.Session.CreateTrigger(triggerInfo);
33  }
static void Deveel.Data.Sql.Triggers.QueryExtensions.FireTriggers ( this IQuery  context,
TableEvent  tableEvent 
)
inlinestatic

Definition at line 23 of file QueryExtensions.cs.

23  {
24  var manager = context.Session.Transaction.GetTriggerManager();
25  if (manager == null)
26  return;
27 
28  manager.FireTriggers(context, tableEvent);
29  }
static bool Deveel.Data.Sql.Triggers.QueryExtensions.TriggerExists ( this IQuery  context,
ObjectName  triggerName 
)
inlinestatic

Definition at line 39 of file QueryExtensions.cs.

39  {
40  return context.Session.TriggerExists(triggerName);
41  }

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