KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > cmp > ejbql > Teacher


1 package example.cmp.ejbql;
2
3 import java.rmi.*;
4 import java.util.*;
5 import javax.ejb.*;
6
7
8 /**
9  * Local interface for the Teacher bean.
10  */

11 public interface Teacher extends EJBLocalObject {
12
13   /**
14    * returns the the name of the Teacher (CMP field).
15    */

16   String getName();
17
18   /**
19    * Returns the Course that this Teacher is teaching (CMR field).
20    */

21   public Course getCourse();
22
23   //public void setCourse();
24

25
26 }
27
Popular Tags