pljava 1.0.0

org.postgresql.pljava.example
Class Triggers

java.lang.Object
  extended byorg.postgresql.pljava.example.Triggers

public class Triggers
extends java.lang.Object

This class contains some triggers that I found written in C under the contrib/spi directory of the postgres source distribution. Code to create the necessary tables, functions, triggers, and some code to actually execute them can be found in class Tester.

Author:
Thomas Hallgren

Constructor Summary
Triggers()
           
 
Method Summary
(package private) static void insertUsername(TriggerData td)
          insert user name in response to a trigger.
(package private) static void moddatetime(TriggerData td)
          Update a modification time when the row is updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Triggers

public Triggers()
Method Detail

insertUsername

static void insertUsername(TriggerData td)
                    throws java.sql.SQLException
insert user name in response to a trigger.

Throws:
java.sql.SQLException

moddatetime

static void moddatetime(TriggerData td)
                 throws java.sql.SQLException
Update a modification time when the row is updated.

Throws:
java.sql.SQLException

pljava 1.0.0