Re: Custom types and JDBC - Mailing list pgsql-general

From mephysto
Subject Re: Custom types and JDBC
Date
Msg-id 1305126218926-4387604.post@n5.nabble.com
Whole thread Raw
In response to Re: Custom types and JDBC  (Adrian Klaver <adrian.klaver@gmail.com>)
Responses Re: Custom types and JDBC
Re: Custom types and JDBC
List pgsql-general
Mmmmm no,
my goal is for example:  define a typeFoo (id as int, name as varchar) in
postgres, define an object in java objFoo (id as int, name string), define a
stored function in posgres return a typeFoo


create ora replace function getFoo() returns typeFoo as
$$
begin
......
end;
$$

I would to connect postgres by jdbc and call stored function getFoo. A this
poin I would set properties of objFoo (id and name) with id and name
retrieved from stored function.

Is resultset the only way to achieve this goal?

Thanks.

Meph

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Custom-types-and-JDBC-tp4387382p4387604.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

pgsql-general by date:

Previous
From: Stanislav Raskin
Date:
Subject: Re: full text search to_tsquery performance with ispell dictionary
Next
From: tv@fuzzy.cz
Date:
Subject: Re: full text search to_tsquery performance with ispell dictionary