Russell,
thank you for the link. I have all the logic already implemented either
in my classes or I use system one (like java.net.Inet4Address) so what I
need (and have) is just a simple implementation of PGobject which
returns correct type and the value.
Best regards,
--
Miroslav Šulc
Russell Francis napsal(a):
> Miroslav Šulc wrote:
>
>> Thank you for explanation. If I still want to write inet[] data, is it
>> sufficient to implement PGobject so it returns 'inet[]' type and '{
>> "ip", "ip" }' value and pass that to setObject()?
>>
>
> Miroslav,
>
> I don't know if this will help you but awhile ago I implemented data
> types for the JDBC driver for PGinet, PGmacaddr, PGcidr which have been
> used successfully by a number of people including myself ;) I would
> still like to get them integrated into the driver but haven't had much
> time to pursue it. You can find the current version at
>
> http://oak.cats.ohiou.edu/~rf358197/jdbc/2/
>
> I have zero experience using them in an array but if you are using those
> data types in PostgreSQL and using Java, the code might be useful to you.
>
> Kind regards,
> Russ
>