commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <grahamdavid1...@yahoo.com>
Subject Re: [dbutil] BasicRowProcessor Question.
Date Wed, 28 Sep 2005 15:56:00 GMT
There is a bugzilla ticket open for providing this functionality although
it does not use updatable ResultSets.

David


--- Ahmed Mohombe <amohombe@yahoo.com> wrote:

> Hi,
> 
> Are there any plans to add to [dbutils] the 'inverse function' for
> BasicRowProcessor.toBean(java.sql.ResultSet rs, java.lang.Class type) ?
> 
> Basically it would do exactly the opposite, i.e. "fromBean":
> BasicRowProcessor.fromBean(java.sql.ResultSet updateableResultSet,
> Object bean);
> 
> by calling ResultSet.updateXXX() where toBean was calling getXXX(), with
> the
> same naming convention and reflection for bean fields/table columns and
> types.
> 
> Having this small function, would make [dbutils] very strong, since it
> will reduce
> the code greatly (exactly how toBean() does with reading).
> 
> Even more, for simple projects, users could use just use [dbutils]
> instead of bigger
> ORM. I think this difference is relevant since [dbutils] is only a few
> KB small, and
> easy to learn for everyone.
> 
> Thanks in advance,
> 
> Ahmed.
> 


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


		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

---------------------------------------------------------------------
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