Package org.h2.fulltext
Class FullTextLucene.FullTextTrigger
java.lang.Object
org.h2.fulltext.FullTextLucene.FullTextTrigger
- All Implemented Interfaces:
Trigger
- Enclosing class:
- FullTextLucene
Trigger updates the index when a inserting, updating, or deleting a row.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
INTERNALvoid
fire
(Connection conn, Object[] oldRow, Object[] newRow) INTERNALvoid
init
(Connection conn, String schemaName, String triggerName, String tableName, boolean before, int type) INTERNAL
-
Constructor Details
-
FullTextTrigger
public FullTextTrigger()
-
-
Method Details
-
init
public void init(Connection conn, String schemaName, String triggerName, String tableName, boolean before, int type) throws SQLException INTERNAL- Specified by:
init
in interfaceTrigger
- Parameters:
conn
- 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)- Throws:
SQLException
- on SQL exception- See Also:
-
fire
INTERNAL- Specified by:
fire
in interfaceTrigger
- Parameters:
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)- Throws:
SQLException
- if the operation must be undone- See Also:
-
close
INTERNAL- Specified by:
close
in interfaceTrigger
- Throws:
SQLException
- on SQL exception
-