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

Static Public Member Functions

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

Detailed Description

Definition at line 23 of file QueryContextExtensions.cs.

Member Function Documentation

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

Definition at line 72 of file QueryContextExtensions.cs.

72  {
73  context.CreateTrigger(new TriggerInfo(triggerName, eventType));
74  }
static void Deveel.Data.Sql.Triggers.QueryContextExtensions.CreateTrigger ( this IQueryContext  context,
TriggerInfo  triggerInfo 
)
inlinestatic

Definition at line 68 of file QueryContextExtensions.cs.

68  {
69  context.Session().CreateTrigger(triggerInfo);
70  }
static void Deveel.Data.Sql.Triggers.QueryContextExtensions.FireTriggers ( this IQueryContext  context,
TableEventContext  tableEvent 
)
inlinestatic

Definition at line 24 of file QueryContextExtensions.cs.

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

Definition at line 76 of file QueryContextExtensions.cs.

76  {
77  return context.Session().TriggerExists(triggerName);
78  }

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