org.squashtest.csp.h2.triggers
Class RLNAfterInsert

java.lang.Object
  extended by org.h2.tools.TriggerAdapter
      extended by org.squashtest.csp.h2.triggers.RLNAfterInsert
All Implemented Interfaces:
org.h2.api.Trigger

public class RLNAfterInsert
extends org.h2.tools.TriggerAdapter

Triggered after a new RequirementLibraryNode had been inserted. It will insert into the relationship closure table the self-reference (the distance of a node with itself is always 0).

Author:
bsiri

Field Summary
 
Fields inherited from class org.h2.tools.TriggerAdapter
before, schemaName, tableName, triggerName, type
 
Fields inherited from interface org.h2.api.Trigger
DELETE, INSERT, SELECT, UPDATE
 
Constructor Summary
RLNAfterInsert()
           
 
Method Summary
 void fire(Connection conn, ResultSet oldRow, ResultSet newRow)
           
 
Methods inherited from class org.h2.tools.TriggerAdapter
close, fire, init, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RLNAfterInsert

public RLNAfterInsert()
Method Detail

fire

public void fire(Connection conn,
                 ResultSet oldRow,
                 ResultSet newRow)
          throws SQLException
Specified by:
fire in class org.h2.tools.TriggerAdapter
Throws:
SQLException


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.