KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > cmp > select > HouseHome


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

11 public interface HouseHome extends EJBLocalHome {
12
13   /**
14    * returns the <code>House</code> that has <code>name</code>
15    * as its primary key.
16    *
17    * @param name name of the <code>House</code> we want to find.
18    */

19   House findByPrimaryKey(String name)
20     throws FinderException;
21
22   /**
23    * Returns all the houses in the database.
24    *
25    * @return a collection of House beans.
26    */

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