1 package org.campware.cream.modules.screens; 2 3 42 43 import java.util.List ; 44 import org.apache.torque.util.Criteria; 45 import org.campware.cream.om.CarrierPeer; 46 47 51 public class CarrierList extends CreamList 52 { 53 54 protected void initScreen() 55 { 56 setModuleType(LOOKUP); 57 setModuleName("CARRIER"); 58 setIdName(CarrierPeer.CARRIER_ID); 59 setDefOrderColumn(CarrierPeer.CARRIER_NAME); 60 } 61 62 protected String getSortColumn(int sortNo) 63 { 64 if (sortNo==1){ 65 return CarrierPeer.CARRIER_NAME; 66 } 67 68 return ""; 69 } 70 71 protected List getEntries(Criteria criteria) 72 { 73 try 74 { 75 return CarrierPeer.doSelect(criteria); 76 } 77 catch (Exception e) 78 { 79 return null; 80 } 81 } 82 83 } 84 | Popular Tags |