BeanListHandler 用法 高手进来帮下忙谢谢了
整个的方法是这样的
public static List selectTestRecord(int prouct_brand)
{
final String SQL="select test_description, from test_record where prouct_brand=?";
Object[] params = new Object[] { prouct_brand };
BeanListHandler blh = new BeanListHandler(ShowTestReportBean.class,
ModifiedRowProcesser.instance());
try {
List list = (ArrayList) db.query(SQL, params, blh);
if(list!=null){
for(int i=0;i<list.size();i++){
ShowTestReportBean testRecordBean = (ShowTestReportBean) list.get(i);
就在这 不能继续了 怎么从BeanListHandler里把查出来的值给我实例化的这个
testRecordBean ???????不会了继续不下去叻55555555555555
}
}
} catch (SQLException e) {
// TODO 自动生成 catch 块
e.printStackTrace();
}
return null;
}