C# Class Deveel.Data.Sql.Triggers.Trigger

Represents an event fired at a given modification event (either INSERT, DELETE or UPDATE) at a given time (BEFORE or AFTER).

Event triggers can be of two different main categories: Callback, called for every modification event of the given type on any resource and notified only to the user client Procedure, that executes a procedure (either external, internal or defined as the body of the trigger)

Inheritance: IDbObject
Exibir arquivo Open project: deveel/deveeldb Class Usage Examples

Private Properties

Property Type Description
GetOldState OldNewTableState
SetState void

Public Methods

Method Description
CanFire ( TableEvent tableEvent ) : bool
Fire ( TableEvent tableEvent, IRequest context ) : void

Protected Methods

Method Description
FireTrigger ( TableEvent tableEvent, IBlock context ) : void
Trigger ( TriggerInfo triggerInfo ) : System

Private Methods

Method Description
GetOldState ( IRequest request ) : OldNewTableState
SetState ( IRequest request, OldNewTableState newState ) : void

Method Details

CanFire() public method

public CanFire ( TableEvent tableEvent ) : bool
tableEvent TableEvent
return bool

Fire() public method

public Fire ( TableEvent tableEvent, IRequest context ) : void
tableEvent TableEvent
context IRequest
return void

FireTrigger() protected abstract method

protected abstract FireTrigger ( TableEvent tableEvent, IBlock context ) : void
tableEvent TableEvent
context IBlock
return void

Trigger() protected method

protected Trigger ( TriggerInfo triggerInfo ) : System
triggerInfo TriggerInfo
return System