example.cmp.find
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
 java.lang.String getCourseId()
          returns the id (and name) of this course (CMP field).
 java.lang.String getInstructor()
          returns the name of the instructor who is teaching this course (CMP field).
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

getCourseId

public java.lang.String getCourseId()
returns the id (and name) of this course (CMP field). This is also the primary key as defined in the deployment descriptor.

getInstructor

public java.lang.String getInstructor()
returns the name of the instructor who is teaching this course (CMP field).