1 package example.cmp.select; 2 3 import javax.ejb.*; 4 import java.util.*; 5 6 26 abstract public class HouseBean extends com.caucho.ejb.AbstractEntityBean { 27 28 32 abstract public String getName(); 33 34 38 public abstract Collection getStudentList(); 39 40 61 public abstract Collection ejbSelectAllBoys(House house) 62 throws FinderException; 63 64 69 public List getAllBoyNamesSorted() 70 { 71 ArrayList list = null; 72 73 try { 74 House house = (House) getEntityContext().getEJBLocalObject(); 75 76 list = (ArrayList) ejbSelectAllBoys(house); 77 } catch (Exception e) { 78 e.printStackTrace(); 79 } 80 81 return list; 82 } 83 84 } 85 | Popular Tags |