Re: create BLOB question

From: Barry Lind <blind(at)xythos(dot)com>
To: Jeremiah Jahn <jeremiah(at)cs(dot)earlham(dot)edu>
Cc: David Wall <d(dot)wall(at)computer(dot)org>, postgres jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: create BLOB question
Date: 2003-02-11 17:48:36
Message-ID: 3E493774.3010101@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tony Grant 2003-02-11 21:32:51 Re: Datasource and tomcat, Postgresql 7.4, jkd1.4.1 --
Previous Message Jeremiah Jahn 2003-02-11 17:23:33 Re: create BLOB question