Package org.h2.test.db
Class TestTriggersConstraints.TestTriggerAdapter
- java.lang.Object
-
- org.h2.tools.TriggerAdapter
-
- org.h2.test.db.TestTriggersConstraints.TestTriggerAdapter
-
- All Implemented Interfaces:
Trigger
- Enclosing class:
- TestTriggersConstraints
public static class TestTriggersConstraints.TestTriggerAdapter extends TriggerAdapter
A test trigger adapter implementation.
-
-
Field Summary
-
Fields inherited from class org.h2.tools.TriggerAdapter
before, schemaName, tableName, triggerName, type
-
-
Constructor Summary
Constructors Constructor Description TestTriggerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfire(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
fire, init
-
-
-
-
Method Detail
-
fire
public void fire(java.sql.Connection conn, java.sql.ResultSet oldRow, java.sql.ResultSet newRow) throws java.sql.SQLExceptionDescription copied from class:TriggerAdapterThis method is called for each triggered action by the default fire(Connection conn, Object[] oldRow, Object[] newRow) method.For "before" triggers, the new values of the new row may be changed using the ResultSet.updateX methods.
- Specified by:
firein classTriggerAdapter- Parameters:
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)- Throws:
java.sql.SQLException- if the operation must be undone
-
-