|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.tools.TriggerAdapter
org.h2.test.db.TestTriggersConstraints.DeleteTrigger
public static class TestTriggersConstraints.DeleteTrigger
A trigger that deletes all rows in the test table.
Field Summary |
---|
Fields inherited from class org.h2.tools.TriggerAdapter |
---|
before, schemaName, tableName, triggerName, type |
Fields inherited from interface org.h2.api.Trigger |
---|
DELETE, INSERT, SELECT, UPDATE |
Constructor Summary | |
---|---|
TestTriggersConstraints.DeleteTrigger()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.h2.tools.TriggerAdapter |
---|
close, fire, init, remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestTriggersConstraints.DeleteTrigger()
Method Detail |
---|
public void fire(java.sql.Connection conn, java.sql.ResultSet oldRow, java.sql.ResultSet newRow) throws java.sql.SQLException
TriggerAdapter
For "before" triggers, the new values of the new row may be changed using the ResultSet.updateX methods.
fire
in class TriggerAdapter
conn
- 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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |