KickJava   Java API By Example, From Geeks To Geeks.

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


1 package example.cmp.one2many;
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) throws FinderException;
20
21   /**
22    * returns a <code>Collection</code> of all Houses managed by the container.
23    */

24   Collection findAll() throws FinderException;
25 }
26
Popular Tags