[Pljava-dev] Array Support
Edwin Ramirez
Edwin.Ramirez at mssm.edu
Tue Jan 27 21:53:56 UTC 2009
I just started using PL/Java and it works very well. Compared to what
has to be done in Oracle to start creating functions in Java, it is 100
times easier.
In Oracle, I have functions like:
CREATE OR REPLACE FUNCTION count(match varchar,neg varchar,args vNum)
RETURN number deterministic as language java name
'whdpPkg.countMatch(java.lang.String, java.lang.String,oracle.sql.ARRAY)
return double';
Where "vNum" is a: CREATE OR REPLACE TYPE vNum as TABLE OF NUMBER;
Basically, an array of numbers (numerics).
Ideally in Postgres/PLJava I would like to:
CREATE OR REPLACE FUNCTION count(match varchar,neg varchar, args
numeric[]) RETURNS numeric as 'whdpPkg.countMatch(java.lang.String,
java.lang.String, ?????)' LANGUAGE java;
Is this possible? Is there a "oracle.sql.ARRAY" equivalent for Postgres?
What work is required to support something like this?
Thanks,
--
Edwin S. Ramirez, Senior Developer
Information Technology Department - ITDC
Mount Sinai Medical Center
More information about the Pljava-dev
mailing list