I think there is a minor error in the documentation, in the section about 
triggers:

http://www.h2database.com/html/features.html?highlight=trigger&search=trigger#triggers

The sample code showing how to use the TriggerAdapter class reads

import org.h2.tools.TriggerAdapter;
...
public class TriggerSample *implements* TriggerAdapter {

    public void fire(Connection conn, ResultSet oldRow, ResultSet newRow)
            throws SQLException {
        // the trigger is fired
    }

}


but since TriggerAdapter is an abstract class and not an interface (any 
more, perhaps?), it should read '*extends*' instead of '*implements*'. 
Also, prepending the method declaration with '*@Override*' seems 
appropriate.




-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to