01: package org.mockejb.test.entity;
02:
03: import java.util.Collection;
04: import javax.ejb.*;
05:
06: public interface PersonHome extends EJBLocalHome {
07:
08: // ** Create methods
09:
10: Person create(String firstName, String lastName)
11: throws CreateException;
12:
13: Person create() throws CreateException;
14:
15: // ** finders
16: Person findByPrimaryKey(long id) throws FinderException;
17:
18: Person findByName(String firstName, String lastName)
19: throws FinderException;
20:
21: Collection findByFirstName(String firstName) throws FinderException;
22:
23: // home methods
24: void updateNames() throws FinderException;;
25: }
|