StringMember status = new StringMember("status", (String)hm.get("status"), 10, "", 'T', false);
// int nooforder = ((Long)hm.get("nooforder")).intValue();
int nooforder = Integer.parseInt(hm.get("ordercount").toString());
IntMember nooforders = new IntMember("nooforders", nooforder, 10, "", 'T', false, 10);
PromotionListElement ele = new PromotionListElement(ID);
ele.put("promotionid", promotionid);
ele.put("title", title);
ele.put("description", description);
ele.put("startdate", startdate);
ele.put("enddate", enddate);
ele.put("status", status);
ele.put("nooforders", nooforders);
// added by Sameer for generating fixed length sort key from i
StringBuffer sb = new StringBuffer("00000000000");
sb.setLength(11);
String str = (new Integer(i)).toString();