Re: arrays as parameters in callableStatements

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: arrays as parameters in callableStatements
Дата
Msg-id Pine.BSO.4.63.0605150441580.8631@leary2.csoft.net
обсуждение исходный текст
Ответ на Re: arrays as parameters in callableStatements  ("J." <sweepingoar@yahoo.com>)
Список pgsql-jdbc

On Sun, 14 May 2006, J. wrote:

> Thanks, I thought that might be an issue, but looking at the API, I
> don't see how to convert an array or ArrayList to an Array object or
> back.  Any tips on where to look?
>

For java.sql.Array -> type[] it's easy, the Array.getArray call will
return a String[] or int[] or whatever typed array is appropriate.

The type[] -> java.sql.Array side is more complicated, searching this
lists archives will give you some example, but the basic idea is that you
create a class that implements java.sql.Array and can therefore accept any
input format you need.

Kris Jurka


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: postgreSQL or derby for an enterprise application
Следующее
От: "Jason Porter"
Дата:
Сообщение: JPOX Types.CHAR error