public abstract class WordsTrigger
extends org.h2.tools.TriggerAdapter
Modifier and Type | Field and Description |
---|---|
protected boolean |
caseSensitive
the flag indicating that the field is case sensitive
|
protected java.lang.String |
fieldName
the name of the field of the master table
|
protected static java.lang.String |
IDX
Index field name in the extent table
|
protected java.lang.String |
pkName
the name of the primary key of the master table
|
protected int |
pos
field position ( != 0 only for the custom extents)
|
protected java.lang.String |
wordTableName
the word table name
|
Constructor and Description |
---|
WordsTrigger(java.lang.String init)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
insertWords(java.sql.Connection conn,
long pk,
int index,
java.lang.String field)
Populate the word table associated with an extent field of the master table
|
protected void |
insertWords(java.sql.Connection conn,
long pk,
java.lang.String field)
Populate the word table associated with a field of the master table
|
protected static final java.lang.String IDX
protected final java.lang.String pkName
protected final java.lang.String fieldName
protected final java.lang.String wordTableName
protected final boolean caseSensitive
protected final int pos
public WordsTrigger(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)protected void insertWords(java.sql.Connection conn, long pk, java.lang.String field) throws java.sql.SQLException
conn
- a connection to the database.pk
- the value of the primary key of the master table recordfield
- the value of the field the word table is associated withjava.sql.SQLException
- if the operation must be undoneprotected void insertWords(java.sql.Connection conn, long pk, int index, java.lang.String field) throws java.sql.SQLException
conn
- a connection to the database.pk
- the value of the primary key of the master table recordindex
- the value of the index key of the extent table recordfield
- the value of the field the word table is associated withjava.sql.SQLException
- if the operation must be undone