CachedRowSet的用法

String sql="select item_code from xt_dictionary_item where type_id='32' and parent_itemid='0' order by view_index";
Delegate dg=new Delegate("");
CachedRowSet crs = dg.getRowSet(sql);

Dictionary dd = Dictionary.getInstance();

while(crs.next()){
Map<String,String> map=new HashMap<>();
map.put("item_code", crs.getString("item_code"));
map.put("typename", dd.getDicItemName("ZD_20003", crs.getString("item_code")));
list.add(map);
}

 

Published by

风君子

独自遨游何稽首 揭天掀地慰生平

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注