commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Guo <daniel5...@gmail.com>
Subject How to use toBeanList() of BasicRowProcessor?
Date Sun, 29 Sep 2013 03:01:04 GMT
Hi:
I encounter a problem in using dbutils:

I try to use toBeanList() to convert resultSet to bean, my code is:

*BasicRowProcessor basicRowProcessor = new BasicRowProcessor(new
PropertyColumnMapper());
*
*objectList = basicRowProcessor.toBeanList(resultSet, clazz);*

In PropertyColumnMapper(), I override the method mapColumnsToProperties(),
and the param clazz is the bean class.

I got exceptions, did I miss something? Could anybody help, thanks a lot.

-- 
Thanks,
Ling Guo

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message