KickJava   Java API By Example, From Geeks To Geeks.

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


1 package example.cmp.ejbql;
2
3 import java.rmi.*;
4 import javax.ejb.*;
5
6 import java.util.*;
7
8 /**
9  * Home interface for the Student bean. The <code>findAll()</code> method
10  * is one of the most generically useful queries.
11  */

12 public interface StudentHome extends EJBLocalHome {
13   /**
14    * Returns the <code>Student</code> entity that has <code>name</code>
15    * as its primary key.
16    */

17   public Student findByPrimaryKey(String name)
18     throws FinderException;
19
20   /**
21    * Returns a Collection of all Students enrolled at Hogwarts.
22    *
23    * <code><pre>
24    * SELECT o FROM ejbql_student o
25    * </pre></code>
26    */

27   abstract public Collection findAll()
28     throws FinderException;
29 }
30
Popular Tags