KickJava   Java API By Example, From Geeks To Geeks.

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


1 package example.cmp.id;
2
3 import java.rmi.*;
4 import javax.ejb.*;
5
6 import java.util.*;
7
8 /**
9  * Home interface for the Quidditch statistics. The
10  * Quidditch entry uses an identifying relationship to the Student
11  * as its primary.
12  */

13 public interface QuidditchHome extends EJBLocalHome {
14   /**
15    * Returns the <code>Quidditch</code> entity with the <code>Student</code>
16    * as its primary key.
17    */

18   public Quidditch findByPrimaryKey(Student student)
19     throws FinderException;
20   /**
21    * Create a Quidditch entry for a student.
22    */

23   public Quidditch create(Student student, String position)
24     throws CreateException;
25 }
26
Popular Tags