Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql.db
Class H2Fulltext.Trigger

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.db.H2Fulltext.Trigger
All Implemented Interfaces:
org.h2.api.CloseListener, org.h2.api.Trigger
Enclosing class:
H2Fulltext

public static class H2Fulltext.Trigger
extends Object
implements org.h2.api.Trigger, org.h2.api.CloseListener

Trigger used to update the lucene index upon row change.


Field Summary
 
Fields inherited from interface org.h2.api.Trigger
DELETE, INSERT, UPDATE
 
Constructor Summary
H2Fulltext.Trigger()
           
 
Method Summary
 void close()
           
 void fire(Connection conn, Object[] oldRow, Object[] newRow)
          Trigger interface.
 void init(Connection conn, String schema, String triggerName, String table, boolean before, int opType)
          Trigger interface: initialization.
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

H2Fulltext.Trigger

public H2Fulltext.Trigger()
Method Detail

init

public void init(Connection conn,
                 String schema,
                 String triggerName,
                 String table,
                 boolean before,
                 int opType)
          throws SQLException
Trigger interface: initialization.

Specified by:
init in interface org.h2.api.Trigger
Throws:
SQLException

fire

public void fire(Connection conn,
                 Object[] oldRow,
                 Object[] newRow)
          throws SQLException
Trigger interface.

Specified by:
fire in interface org.h2.api.Trigger
Throws:
SQLException

close

public void close()
           throws SQLException
Specified by:
close in interface org.h2.api.CloseListener
Throws:
SQLException

remove

public void remove()
Specified by:
remove in interface org.h2.api.CloseListener

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.