commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmed Mohombe <>
Subject [dbutil] BasicRowProcessor Question.
Date Tue, 20 Sep 2005 17:31:44 GMT

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,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message