KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > cmp > id > Quidditch


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

10 public interface Quidditch extends EJBLocalObject {
11
12   /**
13    * Returns the student. This is the primary key.
14    */

15   Student getStudent();
16
17   /**
18    * Returns the player's position.
19    */

20   String getPosition();
21
22   /**
23    * Sets the player's position.
24    */

25   void setPosition(String position);
26
27   /**
28    * Returns the number of points the player has earned this season.
29    */

30   int getPoints();
31
32   /**
33    * Sets the number of points the player has earned this season.
34    */

35   void setPoints(int points);
36 }
37
Popular Tags