commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmed Mohombe <amoho...@yahoo.com>
Subject [dbutil] BasicRowProcessor Question.
Date Tue, 20 Sep 2005 17:31:44 GMT
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.


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