public class OnUpdateWordsCExt extends WordsTrigger
caseSensitive, fieldName, IDX, pkName, pos, wordTableName
Constructor and Description |
---|
OnUpdateWordsCExt(java.lang.String init)
Constructor
|
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.
|
insertWords, insertWords
public OnUpdateWordsCExt(java.lang.String init)
init
- initialization string. Contains the following values
separated by semicolon:
- the name of the primary key of the master table
- the name of the field of the master table
- the word table name
- the flag indicating that the field is case sensitive ('true'/'false')
- the extent field position ( != 0 only for the custom extents)public void fire(java.sql.Connection conn, java.sql.ResultSet oldRow, java.sql.ResultSet newRow) throws java.sql.SQLException
For "before" triggers, the new values of the new row may be changed using the ResultSet.updateX methods.
fire
in class org.h2.tools.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