日期:2014-05-17  浏览次数:20861 次

求大侠帮忙看看
[关注官方微博]
[1千金币=1元]
[上传资源赚钱]

  
javabean的部分代码sbglUtil 类的部分代码

public Collection getAllsbgl() throws Exception {
                Statement stmt = con.createStatement();
                ResultSet rst = stmt.executeQuery("select * from sbtj");
                Collection ret = new ArrayList();
                while (rst.next()) {
                        sbgl tempSt = new sbgl();
                        tempSt.setid(rst.getString("id"));
                        tempSt.setname(rst.getString("name"));
                        tempSt.setrkdate(rst.getString("rkdate"));
                        tempSt.setsbxh(rst.getString("sbxh"));
                        tempSt.setscdate(rst.getString("scdate"));
                        tempSt.setsblx(rst.getString("sblx"));
                        tempSt.setgs(rst.getString("gs"));
                        tempSt.setbm(rst.getString("bm"));
                        tempSt.setsbzt(rst.getString("sbzt"));
                        tempSt.setczid(rst.getString("czid"));
                                                
                        ret.add(tempSt);
                }
                stmt.close();
                con.close();
                return ret;
        }

-----------------------
sbgl 类中的部分代码
}