There is a bugzilla ticket open for providing this functionality although it does not use updatable ResultSets.
David --- Ahmed Mohombe <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
