Specifies how this trigger is implemented.
Usage
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:
Note:
There is an older value for this keyword (generator), which is only present for compatibility reasons. Newer applications should use objectgenerator.
Details
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.
Default
The default value is code. That is, by default, a trigger is not a trigger generator.