example.cmp.ejbql
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 |
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). |
Teacher |
getTeacher()
returns the Teacher who is teaching this Course (CMR field). |
Methods inherited from interface javax.ejb.EJBLocalObject |
getEJBLocalHome, getPrimaryKey, isIdentical, remove |
getName
public java.lang.String getName()
- Get the ID of the course (CMP field).
This is also the primary key as defined in the deployment descriptor.
getStudentList
public java.util.Collection getStudentList()
- Returns a
Collection
of all Students who are currently
enrolled in this Course (CMR field).
getTeacher
public Teacher getTeacher()
- returns the Teacher who is teaching this Course (CMR field).