* @throws InstantiationException
* @throws SQLException
*/
public ListItemsData getListItemsData(Class beanClass) throws SQLException,
InstantiationException, IllegalAccessException {
ListItemsData result = new ListItemsData();
result.setTotalCount(this.totalCount);
this.beanMapper = new BeanMapper(beanClass);
List itemRange = new ArrayList();
//XXX add capacity
while (this.itemRangeResultSet.next()) {
Object record = beanClass.newInstance();
readBeanFields(this.itemRangeResultSet, record);
itemRange.add(record);
}
result.setItemRange(itemRange);
return result;
}