public static class FullTextLucene.FullTextTrigger extends Object implements Trigger
Modifier and Type | Field and Description |
---|---|
protected String[] |
columns |
protected int[] |
columnTypes |
protected org.h2.fulltext.FullTextLucene.IndexAccess |
indexAccess |
protected int[] |
indexColumns |
protected String |
indexPath |
protected int[] |
keys |
protected String |
schema |
protected String |
table |
Constructor and Description |
---|
FullTextLucene.FullTextTrigger() |
Modifier and Type | Method and Description |
---|---|
void |
close()
INTERNAL
|
protected void |
delete(Object[] row)
Delete a row from the index.
|
void |
fire(Connection conn,
Object[] oldRow,
Object[] newRow)
INTERNAL
|
void |
init(Connection conn,
String schemaName,
String triggerName,
String tableName,
boolean before,
int type)
INTERNAL
|
protected void |
insert(Object[] row)
Add a row to the index.
|
void |
remove()
INTERNAL
|
protected String schema
protected String table
protected int[] keys
protected int[] indexColumns
protected String[] columns
protected int[] columnTypes
protected String indexPath
protected org.h2.fulltext.FullTextLucene.IndexAccess indexAccess
public void init(Connection conn, String schemaName, String triggerName, String tableName, boolean before, int type) throws SQLException
init
in interface Trigger
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)SQLException
public void fire(Connection conn, Object[] oldRow, Object[] newRow) throws 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)SQLException
- if the operation must be undonepublic void close() throws SQLException
close
in interface Trigger
SQLException
protected void insert(Object[] row) throws SQLException
row
- the rowSQLException
protected void delete(Object[] row) throws SQLException
row
- the rowSQLException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.