This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see Why Migrate to InterSystems IRIS?


persistent class %Library.TriggerDefinition extends %Library.AbstractDefinition

SQL Table Name: %Library.TriggerDefinition

Note: The class definition classes in the %Library package have been superceded by those in the %Dictionary package.

This class represents a specific SQL trigger description for a class contained within the Caché Dictionary.

For more information on class definition classes, refer to About Class Definition Classes.

Property Inventory


property ClassName as %CacheString;
A string containing the name of the class the SQL trigger belongs to.
Property methods: ClassNameGet(), ClassNameIsValid(), ClassNameSet()
property Code as %CacheString;
A string containing the code for the SQL trigger.
Property methods: CodeGet(), CodeIsValid(), CodeSet()
property Description as %CacheString;
A string containing a description of the SQL trigger.
Property methods: DescriptionGet(), DescriptionIsValid(), DescriptionSet()
property Event as %CacheString;
A string containing the name of event the trigger is associated with. This can be "INSERT", "UPDATE", or "DELETE".
Property methods: EventGet(), EventIsValid(), EventSet()
property Internal as %CacheString;
A flag indicating whether the trigger is internal (1) or not (0).
Property methods: InternalGet(), InternalIsValid(), InternalSet()
property Name as %CacheString;
A string containing the name of the SQL trigger.
Property methods: NameGet(), NameIsValid(), NameSet()
property Order as %CacheString;
A number indicating the order in which the trigger should be fired.
Property methods: OrderGet(), OrderIsValid(), OrderSet()
property SequenceNumber as %CacheString;
Sequence number used to determine order of this item in Studio editor and in XML export format.
Property methods: SequenceNumberGet(), SequenceNumberIsValid(), SequenceNumberSet()
property Time as %CacheString [ InitialExpression = "BEFORE" ];
A string containing the name of event modifier for the trigger. This can be "BEFORE" or "AFTER".
Property methods: TimeGet(), TimeIsValid(), TimeSet()


index (IDKEY on ) [IdKey, Type = key];
Index methods: IDKEYCheck(), IDKEYDelete(), IDKEYExists(), IDKEYOpen(), IDKEYSQLCheckUnique(), IDKEYSQLExists(), IDKEYSQLFindPKeyByConstraint(), IDKEYSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods


Gray indicates storage defined by superclasses.

Storage Model: CacheStorage (%Library.AbstractDefinition)