Class BlaineTrig
- java.lang.Object
-
- org.hsqldb.test.BlaineTrig
-
-
Field Summary
-
Fields inherited from interface org.hsqldb.Trigger
DELETE_AFTER, DELETE_AFTER_ROW, DELETE_BEFORE_ROW, INSERT_AFTER, INSERT_AFTER_ROW, INSERT_BEFORE_ROW, UPDATE_AFTER, UPDATE_AFTER_ROW, UPDATE_BEFORE_ROW
-
-
Constructor Summary
Constructors Constructor and Description BlaineTrig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static java.lang.Stringcapitalize(java.lang.String s)voidfire(int i, java.lang.String name, java.lang.String table, java.lang.Object[] row1, java.lang.Object[] row2)The method invoked upon each triggered action.
-
-
-
Method Detail
-
fire
public void fire(int i, java.lang.String name, java.lang.String table, java.lang.Object[] row1, java.lang.Object[] row2)Description copied from interface:TriggerThe method invoked upon each triggered action.type contains the integer index id for trigger type, e.g. TriggerDef.INSERT_AFTER
For all triggers defined as default FOR EACH STATEMENT both oldRow and newRow are null.
For triggers defined as FOR EACH ROW, the following will apply:
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.
For error conditions, users can construct an HsqlException using one of the static methods of org.hsqldb.error.Error with a predefined SQL State from org.hsqldb.error.ErrorCode.
-
capitalize
public static java.lang.String capitalize(java.lang.String s)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG