example.cmp.relations.many2many
Interface Student

All Superinterfaces:
javax.ejb.EJBLocalObject

public interface Student
extends javax.ejb.EJBLocalObject

Remote interface for a student instance.


Method Summary
 void addCourse(Course course)
          Enrolls the Student in a Course.
 java.util.Collection getCourseList()
          Returns the student's house
 java.lang.String getName()
          Returns the student's name.
 void removeCourse(Course course)
          Drops the Student from a Course.
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

getName

public java.lang.String getName()
Returns the student's name.

getCourseList

public java.util.Collection getCourseList()
Returns the student's house

addCourse

public void addCourse(Course course)
Enrolls the Student in a Course.

removeCourse

public void removeCourse(Course course)
Drops the Student from a Course.