example.cmp.transaction
Interface Student

All Superinterfaces:
javax.ejb.EJBLocalObject, java.security.Principal

public interface Student
extends javax.ejb.EJBLocalObject, java.security.Principal

Local interface for the Student bean.


Method Summary
 java.util.Collection getCourseList()
          Returns a Collection of all Courses that the student is currently enrolled in (CMR field).
 java.lang.String getGender()
          Returns the gender of the student (CMP field).
 int getId()
          Returns the student's ID (CMP field).
 java.lang.String getName()
          Returns the student's name (CMP field).
 java.lang.String getPassword()
          Returns the password associated with this student.
 void setGender(java.lang.String gender)
          Sets the gender of the student (CMP field).
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Method Detail

getId

public int getId()
Returns the student's ID (CMP field). This is also the primary key.

getName

public java.lang.String getName()
Returns the student's name (CMP field).
Specified by:
getName in interface java.security.Principal

getPassword

public java.lang.String getPassword()
Returns the password associated with this student.

getGender

public java.lang.String getGender()
Returns the gender of the student (CMP field).

setGender

public void setGender(java.lang.String gender)
Sets the gender of the student (CMP field).

getCourseList

public java.util.Collection getCourseList()
Returns a Collection of all Courses that the student is currently enrolled in (CMR field).