随笔-86  评论-33  文章-0  trackbacks-0
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 阅读(425) 评论(0)  编辑  收藏 所属分类: Java

只有注册用户登录后才能发表评论。


网站导航:
 
MSN:envoydada@hotmail.com QQ:34935442