|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.fulltext.FullTextLucene.FullTextTrigger
public static class FullTextLucene.FullTextTrigger
Trigger updates the index when a inserting, updating, or deleting a row.
Field Summary | |
---|---|
protected java.lang.String[] |
columns
|
protected int[] |
columnTypes
|
protected org.h2.fulltext.FullTextLucene.IndexAccess |
indexAccess
|
protected int[] |
indexColumns
|
protected java.lang.String |
indexPath
|
protected int[] |
keys
|
protected java.lang.String |
schema
|
protected java.lang.String |
table
|
Fields inherited from interface org.h2.api.Trigger |
---|
DELETE, INSERT, SELECT, UPDATE |
Constructor Summary | |
---|---|
FullTextLucene.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 java.lang.String schema
protected java.lang.String table
protected int[] keys
protected int[] indexColumns
protected java.lang.String[] columns
protected int[] columnTypes
protected java.lang.String indexPath
protected org.h2.fulltext.FullTextLucene.IndexAccess indexAccess
Constructor Detail |
---|
public FullTextLucene.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 Trigger
conn
- a connection to the databaseschemaName
- 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, or DELETE
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 Trigger
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 undonepublic void close() throws java.sql.SQLException
close
in interface Trigger
java.sql.SQLException
public 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 |