org.hsqldb
public interface Trigger
Since: 1.7.0
Field Summary | |
---|---|
int | DELETE_AFTER |
int | DELETE_AFTER_ROW |
int | DELETE_BEFORE |
int | DELETE_BEFORE_ROW |
int | INSERT_AFTER |
int | INSERT_AFTER_ROW |
int | INSERT_BEFORE |
int | INSERT_BEFORE_ROW |
int | UPDATE_AFTER |
int | UPDATE_AFTER_ROW |
int | UPDATE_BEFORE |
int | UPDATE_BEFORE_ROW |
Method Summary | |
---|---|
void | fire(int type, String trigName, String tabName, Object[] oldRow, Object[] newRow)
The method invoked upon each triggered action. |
When UPDATE triggers are fired, oldRow contains the existing values of the table row and newRow contains the new values.
For INSERT triggers, oldRow is null and newRow contains the table row to be inserted. For DELETE triggers, newRow is null and oldRow contains the table row to be deleted. type contains the integer index id for trigger type, e.g. TriggerDef.INSERT_AFTER (fredt@users)
Parameters: trigName the name of the trigger tabName the name of the table upon which the triggered action is occuring oldRow the old row newRow the new row