118 Modernizing IBM Eserver iSeries Application Data Acess - A Roadmap Cornerstone
8.1 Trigger programs
Triggers are user-written programs that are directly linked with a table or physical file. They
are automatically activated by the database manager when a data change is performed,
regardless of which interface caused that data change. It does not matter if a row is changed
by native I/O, by interactive SQL, by UPDDTA, by SQLJ, etc., the trigger is activated. The
triggers are mainly intended for monitoring database changes and taking appropriate actions,
and for enforcing complex business rules.
The purposes of using triggers
The purposes are:
Enforcing business rules, regardless of how complex they are
After an order is completely delivered, ...