Hi,
Can you do a test, creating a PL/PgSQL function and invoking such function from your Java code ?
Andrés.