final
List scopeList
=
new
ArrayList();
jdbcTemplate.query(sql,
new
RowCallbackHandler() {
public
void
processRow(ResultSet rs)
throws
SQLException {
Bmbh bm
=
new
Bmbh();
bm.setDeptId(rs.getString(
1
));
bm.setDeptName(rs.getString(
2
));
scopeList.add(bm);
}
}
);
posted on 2006-08-28 14:56
Derek.Guo 阅读(432)
评论(0) 编辑 收藏 所属分类:
Java