01: package com.titan.address;
02:
03: import java.util.Collection;
04:
05: import com.titan.customer.CustomerLocal;
06:
07: // Address EJB's local home interface
08: public interface AddressHomeLocal extends javax.ejb.EJBLocalHome {
09:
10: public AddressLocal createAddress(String street, String city,
11: String state, String zip) throws javax.ejb.CreateException;
12:
13: public AddressLocal findByPrimaryKey(Integer primaryKey)
14: throws javax.ejb.FinderException;
15:
16: public Collection findAllAddress() throws javax.ejb.FinderException;
17:
18: // Home method, requires ejbHomeSelectZipCodes method in bean class
19: public Collection selectZipCodes(String state)
20: throws javax.ejb.FinderException;
21:
22: // Home method, requires ejbHomeSelectCustomer method in bean class
23: public CustomerLocal selectCustomer(AddressLocal addr)
24: throws javax.ejb.FinderException;
25: }
|