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