Derby provides referential actions. Examples in this section are included to illustrate how to write triggers.
You can choose to use standard SQL referential integrity to obtain this functionality, rather than writing triggers. See the Java DB Reference Manual for more information on referential integrity.