public static class TestTriggersConstraints.TestTriggerAdapter extends TriggerAdapter
before, schemaName, tableName, triggerName, type| Constructor and Description |
|---|
TestTriggerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
fire(java.sql.Connection conn,
java.sql.ResultSet oldRow,
java.sql.ResultSet newRow)
This method is called for each triggered action by the default
fire(Connection conn, Object[] oldRow, Object[] newRow) method.
|
close, fire, init, removepublic void fire(java.sql.Connection conn,
java.sql.ResultSet oldRow,
java.sql.ResultSet newRow)
throws java.sql.SQLException
TriggerAdapterFor "before" triggers, the new values of the new row may be changed using the ResultSet.updateX methods.
fire in class TriggerAdapterconn - a connection to the databaseoldRow - the old row, or null if no old row is available (for
INSERT)newRow - the new row, or null if no new row is available (for
DELETE)java.sql.SQLException - if the operation must be undone