|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.fulltext.FullText.FullTextTrigger
public static class FullText.FullTextTrigger
Trigger updates the index when a inserting, updating, or deleting a row.
| Field Summary | |
|---|---|
protected int[] |
columnTypes
|
protected IndexInfo |
index
|
protected java.sql.PreparedStatement |
prepDeleteMap
|
protected java.sql.PreparedStatement |
prepDeleteRow
|
protected java.sql.PreparedStatement |
prepInsertMap
|
protected java.sql.PreparedStatement |
prepInsertRow
|
protected java.sql.PreparedStatement |
prepInsertWord
|
protected java.sql.PreparedStatement |
prepSelectRow
|
protected FullTextSettings |
setting
|
| Fields inherited from interface org.h2.api.Trigger |
|---|
DELETE, INSERT, SELECT, UPDATE |
| Constructor Summary | |
|---|---|
FullText.FullTextTrigger()
|
|
| Method Summary | |
|---|---|
void |
close()
INTERNAL |
protected void |
delete(java.lang.Object[] row)
Delete a row from the index. |
void |
fire(java.sql.Connection conn,
java.lang.Object[] oldRow,
java.lang.Object[] newRow)
INTERNAL |
void |
init(java.sql.Connection conn,
java.lang.String schemaName,
java.lang.String triggerName,
java.lang.String tableName,
boolean before,
int type)
INTERNAL |
protected void |
insert(java.lang.Object[] row)
Add a row to the index. |
void |
remove()
INTERNAL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FullTextSettings setting
protected IndexInfo index
protected int[] columnTypes
protected java.sql.PreparedStatement prepInsertWord
protected java.sql.PreparedStatement prepInsertRow
protected java.sql.PreparedStatement prepInsertMap
protected java.sql.PreparedStatement prepDeleteRow
protected java.sql.PreparedStatement prepDeleteMap
protected java.sql.PreparedStatement prepSelectRow
| Constructor Detail |
|---|
public FullText.FullTextTrigger()
| Method Detail |
|---|
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
init 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.SQLException
public void fire(java.sql.Connection conn,
java.lang.Object[] oldRow,
java.lang.Object[] newRow)
throws java.sql.SQLException
fire in interface Triggerconn - 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 undonepublic void close()
close in interface Triggerpublic void remove()
remove in interface Trigger
protected void insert(java.lang.Object[] row)
throws java.sql.SQLException
row - the row
java.sql.SQLException
protected void delete(java.lang.Object[] row)
throws java.sql.SQLException
row - the row
java.sql.SQLException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||