db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lance J. Andersen" <Lance.Ander...@Sun.COM>
Subject Re: PreparedStatement.setBinaryStream(s,length)
Date Thu, 23 Feb 2006 23:45:22 GMT
I answered this in the blog where the question was asked

Dyre.Tjeldvoll@sun.com wrote:
> 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 :)
>
>   

Mime
View raw message