*/
public ItemList getItemList(int individualID, int startATparam, int EndAtparam,
String searchString, String sortColumn)
{
if ((searchString != null) && ((searchString.trim()).length() > 0)) {
ItemList dl = new ItemList();
dl.setStartAT(startATparam);
dl.setEndAT(EndAtparam);
dl.setSortMember(sortColumn);
dl.setSortType('A');
dl.setSearchString(searchString);
dl.setListType("Item");
long currentListID = this.getNextListID();
dl.setListID(currentListID);
displayLists.put(new Long(currentListID), dl);
return this.getItemList(individualID, dl);
} else {
ItemList returnDL = null;
try {
HashMap hm = new HashMap();
hm.put("startATparam", new Integer(startATparam));
hm.put("EndAtparam", new Integer(EndAtparam));
hm.put("searchString", searchString);
hm.put("sortmem", sortColumn);
hm.put("sortType", new Character('A'));
try {
AccountListHome aa = (AccountListHome)CVUtility.getHomeObject(
"com.centraview.account.accountlist.AccountListHome", "AccountList");
AccountList remote = (AccountList)aa.create();
remote.setDataSource(this.dataSource);
returnDL = remote.getItemList(individualID, hm);
} catch (Exception e) {
System.out.println("[Exception] ListGenerator.getItemList: " + e.toString());
// e.printStackTrace();
}
returnDL.setListType("Item");
returnDL.setTotalNoOfRecords(returnDL.size());
long currentListID = this.getNextListID();
returnDL.setListID(currentListID);
returnDL.setStartAT(startATparam);
returnDL.setEndAT(EndAtparam);
ItemList emptyDL = createEmptyObject(returnDL);
emptyDL.setTotalNoOfRecords(returnDL.getTotalNoOfRecords());
emptyDL.setListID(currentListID);
emptyDL.setListType("Item");
emptyDL.setStartAT(returnDL.getStartAT());
emptyDL.setEndAT(returnDL.getEndAT());
displayLists.put(new Long(currentListID), emptyDL);
} catch (Exception e) {
e.printStackTrace();
}