Package org.h2.test.db
Class TestTriggersConstraints.ConcurrentTrigger
java.lang.Object
org.h2.tools.TriggerAdapter
org.h2.test.db.TestTriggersConstraints.ConcurrentTrigger
- All Implemented Interfaces:
Trigger
- Enclosing class:
TestTriggersConstraints
-
Field Summary
Fields inherited from class org.h2.tools.TriggerAdapter
before, schemaName, tableName, triggerName, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfire(Connection conn, ResultSet oldRow, 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
-
Constructor Details
-
ConcurrentTrigger
public ConcurrentTrigger()
-
-
Method Details
-
fire
Description 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:
SQLException- if the operation must be undone
-