example.cmp.many2many
Interface StudentHome

All Superinterfaces:
javax.ejb.EJBLocalHome

public interface StudentHome
extends javax.ejb.EJBLocalHome

Home interface for the Student bean.


Method Summary
 java.util.Collection findByCourse(java.lang.String name)
          finds all courses for a student
 Student findByPrimaryKey(java.lang.String name)
          returns the Student entity that has name as its primary key.
 
Methods inherited from interface javax.ejb.EJBLocalHome
remove
 

Method Detail

findByPrimaryKey

public Student findByPrimaryKey(java.lang.String name)
                         throws javax.ejb.FinderException
returns the Student entity that has name as its primary key.
Parameters:
name - Primary Key of the student we want to find

findByCourse

public java.util.Collection findByCourse(java.lang.String name)
                                  throws javax.ejb.FinderException
finds all courses for a student
Parameters:
name - Name of the student for whom we want to find all Courses