example.cmp.many2many
Interface CourseHome

All Superinterfaces:
javax.ejb.EJBLocalHome

public interface CourseHome
extends javax.ejb.EJBLocalHome

Home interface for the Course bean.


Method Summary
 Course findByPrimaryKey(java.lang.String name)
          returns the Course that has name as its primary key.
 java.util.Collection findByStudent(java.lang.String name)
          Returns all Courses that a student is enrolled in.
 
Methods inherited from interface javax.ejb.EJBLocalHome
remove
 

Method Detail

findByPrimaryKey

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

findByStudent

public java.util.Collection findByStudent(java.lang.String name)
                                   throws javax.ejb.FinderException
Returns all Courses that a student is enrolled in. Resin-CMP will implement this method.
Parameters:
name - of the Student whose Courses we want to find.