1 package org.campware.cream.modules.screens; 2 3 42 43 44 import org.apache.torque.util.Criteria; 45 46 import org.apache.velocity.context.Context; 47 48 import org.campware.cream.om.Country; 49 import org.campware.cream.om.CountryPeer; 50 51 55 public class CountryForm extends CreamForm 56 { 57 protected void initScreen() 58 { 59 setModuleType(LOOKUP); 60 setModuleName("COUNTRY"); 61 setIdName(CountryPeer.COUNTRY_ID); 62 setFormIdName("countryid"); 63 } 64 65 protected boolean getEntry(Criteria criteria, Context context) 66 { 67 try 68 { 69 Country entry = (Country) CountryPeer.doSelect(criteria).get(0); 70 context.put("entry", entry); 71 return true; 72 } 73 catch (Exception e) 74 { 75 return false; 76 } 77 } 78 } 79 | Popular Tags |