Re: create BLOB question - Mailing list pgsql-jdbc

From Barry Lind
Subject Re: create BLOB question
Date
Msg-id 3E493774.3010101@xythos.com
Whole thread Raw
In response to Re: create BLOB question  (Jeremiah Jahn <jeremiah@cs.earlham.edu>)
List 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 by date:

Previous
From: Jeremiah Jahn
Date:
Subject: Re: create BLOB question
Next
From: GB Clark
Date:
Subject: Re: Datasource and tomcat, Postgresql 7.4, jkd1.4.1 --