db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dyre.Tjeldv...@Sun.COM
Subject Re: PreparedStatement.setBinaryStream(s,length)
Date Sat, 18 Feb 2006 16:51:54 GMT
Suavi Ali Demir <demir4@yahoo.com> writes:

> Hello,
>    
>   Does anybody know why the JDBC method: 
>    
>   PreparedStatement.setBinaryStream(s,size)
>    
>   requires the caller to pass in the length of the stream?

Simple (and stupid) answer: Beacuse the spec says so :)

I don't KNOW this, but I assume that it is to give the implementation
a chance to optimize.

You could check out Lance Anderson's blog: 

http://weblogs.java.net/blog/lancea/archive/2006/02/jdbc_40_keeps_m.html

He's the jdbc spec lead, and if you comment on his blog, maybe he'll give you
a better answer :)

-- 
dt


Mime
View raw message