[Pljava-dev] Re: worked

From: thhal at mailblocks(dot)com (Thomas Hallgren)
To:
Subject: [Pljava-dev] Re: worked
Date: 2004-11-30 09:42:47
Message-ID: thhal-0GtmHAu89cC4CB3n8Hc/YXbUzWVWxhV@mailblocks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Rao,

>ERROR: Unable to find static method com.test.HelloWorld.getName with
>signature (Lorg/postgresql/pljava/TriggerData;)V
>
>
>The function is working fine if I execute as ordinary function ,I mean
>without trigger.
>Create function tgfun() returns varchar as 'com.test.HelloWorld.getName'
>language java;
>
>
PL/Java requires that all trigger functions take a
org.postgresql.pljava.TriggerData argument. So your method must look
something like this:

public static void getName(TriggerData td)
{
}

Regards,
Thomas Hallgren

Browse pljava-dev by date

  From Date Subject
Next Message Morgan Cameron 2004-12-02 02:32:09 [Pljava-dev] ERROR: Unable to find static method...
Previous Message Thomas Hallgren 2004-11-29 12:20:51 [Pljava-dev] Re: problems with pl/java