KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > titan > address > AddressHomeLocal


1 package com.titan.address;
2
3 import java.util.Collection;
4
5 import com.titan.customer.CustomerLocal;
6
7 // Address EJB's local home interface
8
public interface AddressHomeLocal extends javax.ejb.EJBLocalHome {
9
10     public AddressLocal createAddress(String street, String city, String state, String zip )
11         throws javax.ejb.CreateException;
12
13     public AddressLocal findByPrimaryKey(Integer primaryKey)
14         throws javax.ejb.FinderException;
15
16     public Collection findAllAddress()
17         throws javax.ejb.FinderException;
18
19     // Home method, requires ejbHomeSelectZipCodes method in bean class
20
public Collection selectZipCodes(String state)
21         throws javax.ejb.FinderException;
22
23     // Home method, requires ejbHomeSelectCustomer method in bean class
24
public CustomerLocal selectCustomer(AddressLocal addr)
25         throws javax.ejb.FinderException;
26 }
27
Popular Tags