Trigger Template Properties

You can modify a trigger templates properties from its property sheet. The following sections detail the property sheet tabs that contain the properties most commonly entered for trigger templates.

The General tab contains the following properties:

Property

Description

Name

The name of the item which should be clear and meaningful, and should convey the item's purpose to non-technical users

Code

The technical name of the item used for generating code or scripts, which may be abbreviated, and should not generally include spaces

Comment

Descriptive label for the trigger template

DBMS

Current DBMS

Trigger time

Time attribute of the trigger template. The list displays the values defined in the trigger templates and template items of the current DBMS

Trigger event

Event attribute of the trigger template. The list displays the values defined in the trigger templates and template items of the current DBMS

Trigger name

Name of trigger associated with template

Applies to table triggers or view triggers

For those DBMS that support view triggers, it allows you to define if the trigger template applies to table or view triggers

Definition Tab

This tab contains a field for entering its definition code (see Modifying Triggers).

Template Items Tab

This tab list the template items that are defined in the trigger template and that will be generated when a trigger is generated from the template.

You can add any template item from the model or DBMS to the Trigger template definition by clicking an Add Trigger Item tool on the Definition tab, and selecting a trigger item. It is automatically added to this tab.

A template item that is deleted from this tab is not deleted from the trigger template definition. You can therefore limit the template items available for generation by removing template items from this tab, without having to remove them from the trigger template definition.

When you use Rebuild Triggers to automatically create triggers for selected tables, the template items that are listed on this tab are those available for generation. Whether they are generated or not depends on the following:
  • Template items are generated in a trigger if they match the trigger implemented referential integrity defined for a reference attached to the table

  • Template items are generated in a trigger if they are user-defined, regardless of trigger referential integrity constraints