example.cmp.transaction
Interface Course

All Superinterfaces:
javax.ejb.EJBLocalObject

public interface Course
extends javax.ejb.EJBLocalObject

Local interface for the Course bean. The Local Interface represents one entity; in this case a Course .

The idea is that you use the Home Interface to obtain references to whatever entities you're interested in. Each entity that you get from the Home Interface (using its create or finder methods) is then represented by its Local Interface.


Method Summary
 int getId()
          Returns the ID of this course (CMP field).
 java.lang.String getName()
          Get the ID of the course (CMP field).
 java.util.Collection getStudentList()
          Returns a Collection of all Students who are currently enrolled in this Course (CMR field).
 boolean isFull()
          Returns true if the course is full and no more students can enroll in it.
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

getId

public int getId()
Returns the ID of this course (CMP field). This is also the primary key.

getName

public java.lang.String getName()
Get the ID of the course (CMP field).

getStudentList

public java.util.Collection getStudentList()
Returns a Collection of all Students who are currently enrolled in this Course (CMR field).

isFull

public boolean isFull()
Returns true if the course is full and no more students can enroll in it.