example.cmp.select
Interface House

All Superinterfaces:
javax.ejb.EJBLocalObject

public interface House
extends javax.ejb.EJBLocalObject

Local interface for the House bean. In this example, the house is just an empty object with no interesting data.

 CREATE TABLE select_house (
   name VARCHAR(250) NOT NULL,

   PRIMARY KEY(name)
 );
 


Method Summary
 java.util.List getAllBoyNamesSorted()
          returns a sorted List of all Students in this House who are boys.
 java.lang.String getName()
          returns the name of the house (CMP field).
 java.util.Collection getStudentList()
          returns a Collection of all Students living in this House (CMR field).
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

getName

public java.lang.String getName()
returns the name of the house (CMP field).

getStudentList

public java.util.Collection getStudentList()
returns a Collection of all Students living in this House (CMR field).

getAllBoyNamesSorted

public java.util.List getAllBoyNamesSorted()
returns a sorted List of all Students in this House who are boys.