You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Henry Voyer <he...@gemplus.com> on 2005/06/29 15:13:43 UTC

[DBUtils] BeanHandler has problem retrieving Dates ?

Hi everyone

I just used DBUtils for a date retreival. And to my astonishement it doesnt
get the Dates.
I looked in the BasicRowProcessor.isCompatibleType() method, there is no
Date reference.

Is this normal ? and why?

Regards

Henry



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [DBUtils] BeanHandler has problem retrieving Dates ?

Posted by David Graham <gr...@yahoo.com>.
It doesn't need to specifically check for Date because the first thing the
method does is an instanceof check.  So, if your bean property is a
java.util.Date and the JDBC driver returns a java.sql.Date or
java.sql.Timestamp the property should get set.

David


--- Henry Voyer <he...@gemplus.com> wrote:

> Hi everyone
> 
> I just used DBUtils for a date retreival. And to my astonishement it
> doesnt
> get the Dates.
> I looked in the BasicRowProcessor.isCompatibleType() method, there is no
> Date reference.
> 
> Is this normal ? and why?
> 
> Regards
> 
> Henry


Get Firefox!
http://www.mozilla.org/firefox/


		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org