01: package org.mockejb.test.entity;
02:
03: import javax.ejb.CreateException;
04: import javax.ejb.FinderException;
05:
06: public interface AddressHome extends javax.ejb.EJBLocalHome {
07:
08: /**
09: * Creates a new instance of the address for the given person.
10: * For this example, we assume that address does not exist w/o a person.
11: * @param street
12: * @param city
13: * @param state
14: * @param zipCode
15: * @param country
16: * @param person
17: * @return new instance of an Address bean
18: */
19: public Address create(String street, String city, String state,
20: String zipCode, String country, Person person)
21: throws CreateException;
22:
23: public Address findByPrimaryKey(Object key) throws FinderException;
24: }
|