InterSystems IRIS Data Platform 2019.2  /  Class Definition Reference

Class Definition Reference
Next section
InterSystems: The power behind what matters   

Specifies how this trigger is implemented.
To specify how a trigger is implemented, use the following syntax:
Trigger name [ Event = sqlevent, CodeMode = codemode ]  {    //implementation }
Where codemode is one of the following:
There is an older value for this keyword (generator), which is only present for compatibility reasons. Newer applications should use objectgenerator.
This keyword specifies how a given trigger is implemented.
By default, the trigger code consists of one or more lines of code to be executed when the trigger is fired.
If CodeMode is objectgenerator, however, the trigger is actually a trigger generator. A trigger generator is a program invoked by the class compiler that generates the actual implementation for the given trigger. In this case, the trigger code is responsible for the generated code. The logic is similar to that for method generators; see “Defining Method and Trigger Generators” in Defining and Using Classes.
The default value is code. That is, by default, a trigger is not a trigger generator.
See Also

Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-08-16 05:50:13