Re: create BLOB question

Поиск
Список
Период
Сортировка
От Barry Lind
Тема Re: create BLOB question
Дата
Msg-id 3E493774.3010101@xythos.com
обсуждение исходный текст
Ответ на Re: create BLOB question  (Jeremiah Jahn <jeremiah@cs.earlham.edu>)
Список pgsql-jdbc

Jeremiah Jahn wrote:
> When it's finished does it truncate the data?

I would not expect it to.

>
> I tried to find the actual implementation of the Blob.setBytes() in the
> postgres code, but couldn't. Just a bunch of abstract classes and
> things, none of which had code for these methods. Do you know here the
> implementing code for these methods are?
>

There is no implementation of this method.  This is a new method in
jdbc3 and is not yet implemented.  The methods that are implemented are
in org.postgresql.jdbc2.AbstractJdbc2Blob, which uses the functionality
provided by org.postgresql.largeobject.LargeObject.  No work has been
done to implement the jdbc3 additional methods to the Blob interface.
So if you look at org.postgresql.jdbc3.AbstractJdbc3Blob.setBytes() you
will see that the implementation just throws a not implemented
exception.  All the functionality necessary to implement setBytes()
should be available in LargeObject.

--Barry




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

Предыдущее
От: Jeremiah Jahn
Дата:
Сообщение: Re: create BLOB question
Следующее
От: GB Clark
Дата:
Сообщение: Re: Datasource and tomcat, Postgresql 7.4, jkd1.4.1 --