示例#1
0
 public Object handleResultSet(ResultSet rs) throws SQLException {
   List<MenuAdapterVO> list = new ArrayList<MenuAdapterVO>();
   while (rs.next()) {
     MenuAdapterVO menuadaptervo = new MenuAdapterVO();
     menuadaptervo.setId(rs.getString("pk_appscategory"));
     menuadaptervo.setParentid(null);
     menuadaptervo.setTitle(rs.getString("title"));
     menuadaptervo.setType(MenuAdapterVO.CATEGORY_TYPE);
     list.add(menuadaptervo);
   }
   return list;
 }
示例#2
0
 public Object handleResultSet(ResultSet rs) throws SQLException {
   List<MenuAdapterVO> list = new ArrayList<MenuAdapterVO>();
   while (rs.next()) {
     MenuAdapterVO menuadaptervo = new MenuAdapterVO();
     menuadaptervo.setId(rs.getString("pk_menuitem"));
     String pk_parent = rs.getString("pk_parent");
     if (pk_parent == null || "".equals(pk_parent))
       menuadaptervo.setParentid(rs.getString("pk_parent"));
     else menuadaptervo.setParentid(rs.getString("pk_appscategory"));
     menuadaptervo.setTitle(rs.getString("name"));
     menuadaptervo.setType(MenuAdapterVO.MENU_TYPE);
     list.add(menuadaptervo);
   }
   return list;
 }