1 30 31 32 package org.hsqldb; 33 34 83 84 92 public interface Trigger { 93 94 int INSERT_AFTER = 0; 96 int DELETE_AFTER = 1; 97 int UPDATE_AFTER = 2; 98 int INSERT_BEFORE = INSERT_AFTER + TriggerDef.NUM_TRIGGER_OPS; 99 int DELETE_BEFORE = DELETE_AFTER + TriggerDef.NUM_TRIGGER_OPS; 100 int UPDATE_BEFORE = UPDATE_AFTER + TriggerDef.NUM_TRIGGER_OPS; 101 int INSERT_AFTER_ROW = INSERT_AFTER + 2 * TriggerDef.NUM_TRIGGER_OPS; 102 int DELETE_AFTER_ROW = DELETE_AFTER + 2 * TriggerDef.NUM_TRIGGER_OPS; 103 int UPDATE_AFTER_ROW = UPDATE_AFTER + 2 * TriggerDef.NUM_TRIGGER_OPS; 104 int INSERT_BEFORE_ROW = INSERT_BEFORE + 2 * TriggerDef.NUM_TRIGGER_OPS; 105 int DELETE_BEFORE_ROW = DELETE_BEFORE + 2 * TriggerDef.NUM_TRIGGER_OPS; 106 int UPDATE_BEFORE_ROW = UPDATE_BEFORE + 2 * TriggerDef.NUM_TRIGGER_OPS; 107 108 130 void fire(int type, String trigName, String tabName, Object [] oldRow, 131 Object [] newRow); 132 } 133 | Popular Tags |