public static class TestTriggersConstraints.TestSelect extends java.lang.Object implements Trigger
| Constructor and Description |
|---|
TestSelect() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method is called when the database is closed.
|
void |
fire(java.sql.Connection conn,
java.lang.Object[] oldRow,
java.lang.Object[] newRow)
This method is called for each triggered action.
|
void |
init(java.sql.Connection conn,
java.lang.String schemaName,
java.lang.String triggerName,
java.lang.String tableName,
boolean before,
int type)
This method is called by the database engine once when initializing the
trigger.
|
void |
remove()
This method is called when the trigger is dropped.
|
public void init(java.sql.Connection conn,
java.lang.String schemaName,
java.lang.String triggerName,
java.lang.String tableName,
boolean before,
int type)
throws java.sql.SQLException
Triggerinit in interface Triggerconn - a connection to the database (a system connection)schemaName - the name of the schematriggerName - the name of the trigger used in the CREATE TRIGGER
statementtableName - the name of the tablebefore - whether the fire method is called before or after the
operation is performedtype - the operation type: INSERT, UPDATE, DELETE, SELECT, or a
combination (this parameter is a bit field)java.sql.SQLExceptionpublic void fire(java.sql.Connection conn,
java.lang.Object[] oldRow,
java.lang.Object[] newRow)
throws java.sql.SQLException
TriggerThe row arrays contain all columns of the table, in the same order as defined in the table.
The trigger itself may change the data in the newRow array.
public void close()
Trigger