commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafael U. C. Afonso" <r.u.c.afo...@uol.com.br>
Subject Re: Problems with primitives attributes in DBUtils
Date Thu, 05 Feb 2004 11:53:01 GMT
Hello again:

I think that I know cause of my bug.
In process() mehtod in
BasicColumnProcessor a column in
ResultSet is converted in its
apropriate type (like Integer,
Boolean, Float, etc). But Character
classs was "forgotten". So it is
necessary include these lines:

} else if
(propType.equals(Character.TYPE) ||
propType.equals(Character.class)) {
   return new
Character(rs.getString(index).charAt(0));
} else {

I did not tested this but I think that
it works.

Thanks, 

Rafael Ubiratam Clemente Afonso
r.u.c.afonso@uol.com.br
---------------------------------
Where is Debug?
Debug is on the Table!

 
---
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis! 
http://antipopup.uol.com.br


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


Mime
View raw message