org.hsqldb
Interface Trigger
- public interface Trigger
- Since:
- 1.7.0
- Version:
- 1.7.2
- Author:
- Peter Hudson
Method Summary |
void |
fire(int type,
String trigName,
String tabName,
Object[] row1,
Object[] row2)
When UPDATE triggers are fired, row1 contains the
existing values of the table row and row2 contains the new values. |
INSERT_AFTER
public static final int INSERT_AFTER
- See Also:
- Constant Field Values
DELETE_AFTER
public static final int DELETE_AFTER
- See Also:
- Constant Field Values
UPDATE_AFTER
public static final int UPDATE_AFTER
- See Also:
- Constant Field Values
INSERT_BEFORE
public static final int INSERT_BEFORE
- See Also:
- Constant Field Values
DELETE_BEFORE
public static final int DELETE_BEFORE
- See Also:
- Constant Field Values
UPDATE_BEFORE
public static final int UPDATE_BEFORE
- See Also:
- Constant Field Values
INSERT_AFTER_ROW
public static final int INSERT_AFTER_ROW
- See Also:
- Constant Field Values
DELETE_AFTER_ROW
public static final int DELETE_AFTER_ROW
- See Also:
- Constant Field Values
UPDATE_AFTER_ROW
public static final int UPDATE_AFTER_ROW
- See Also:
- Constant Field Values
INSERT_BEFORE_ROW
public static final int INSERT_BEFORE_ROW
- See Also:
- Constant Field Values
DELETE_BEFORE_ROW
public static final int DELETE_BEFORE_ROW
- See Also:
- Constant Field Values
UPDATE_BEFORE_ROW
public static final int UPDATE_BEFORE_ROW
- See Also:
- Constant Field Values
fire
public void fire(int type,
String trigName,
String tabName,
Object[] row1,
Object[] row2)
- When UPDATE triggers are fired, row1 contains the
existing values of the table row and row2 contains the new values.
For INSERT triggers, row1 is null and row2 contains the
table row to be inserted.
For DELETE triggers, row2 is null and row1 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
- tabName
- row1
- row2
-
Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.