throws InstantiationException, IllegalAccessException,
InvocationTargetException, NoSuchMethodException, SQLException {
Set keys = mapping.keySet();
this.records = new ArrayList();
DbDriver dvDriver = DbDriver.getInstance();
while (rs.next()) {
Object item = klass.newInstance();
Iterator it = keys.iterator();
while (it.hasNext()) {
String key = (String) it.next();
PropertyUtils.setProperty(item, key,
dvDriver.mapObjectType(rs.getObject(
(String) mapping.get(key))));
}
this.records.add(item);
}