Deveel.Data.Sql.Statements.DropCallbackTriggersStatement.ExecuteStatement C# (CSharp) Method

ExecuteStatement() protected method

protected ExecuteStatement ( ExecutionContext context ) : void
context ExecutionContext
return void
        protected override void ExecuteStatement(ExecutionContext context)
        {
            if (!context.DirectAccess.TriggerExists(new ObjectName(TriggerName)))
                throw new StatementException(String.Format("The callback trigger '{0}' does not exist in the context.", TriggerName));

            if (!context.DirectAccess.DropCallbackTrigger(TriggerName))
                throw new StatementException(String.Format("Could not drop the callback trigger '{0}' from the context", TriggerName));
        }