1 package example.cmp.select; 2 3 import java.rmi.*; 4 import java.util.*; 5 import javax.ejb.*; 6 7 /** 8 * Local interface for the House bean. In this example, the house is just 9 * an empty object with no interesting data. 10 * 11 * <code><pre> 12 * CREATE TABLE select_house ( 13 * name VARCHAR(250) NOT NULL, 14 * 15 * PRIMARY KEY(name) 16 * ); 17 * </pre></code> 18 */ 19 public interface House extends EJBLocalObject { 20 21 /** 22 * returns the name of the house (CMP field). 23 */ 24 public String getName(); 25 26 /** 27 * returns a <code>Collection</code> of all Students living in this House 28 * (CMR field). 29 */ 30 public Collection getStudentList(); 31 32 /** 33 * returns a sorted <code>List</code> of all Students in this House who are 34 * boys. 35 */ 36 public List getAllBoyNamesSorted(); 37 } 38