KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ent > CustomerLocalHome


1
2 package ent;
3
4 import java.util.Collection JavaDoc;
5 import javax.ejb.CreateException JavaDoc;
6 import javax.ejb.EJBLocalHome JavaDoc;
7 import javax.ejb.FinderException JavaDoc;
8
9
10 /**
11  * This is the local-home interface for Customer enterprise bean.
12  */

13 public interface CustomerLocalHome extends EJBLocalHome JavaDoc {
14     
15     CustomerLocal findByPrimaryKey(Integer JavaDoc key) throws FinderException JavaDoc;
16
17     public CustomerLocal create(Integer JavaDoc customerId, String JavaDoc zip, String JavaDoc name, String JavaDoc addressline1, String JavaDoc addressline2, String JavaDoc city, String JavaDoc state, String JavaDoc phone, String JavaDoc fax, String JavaDoc email, Integer JavaDoc creditLimit, DiscountCodeLocal discountCode) throws CreateException JavaDoc;
18
19     Collection JavaDoc findByCustomerId(Integer JavaDoc customerId) throws FinderException JavaDoc;
20
21     Collection JavaDoc findByZip(String JavaDoc zip) throws FinderException JavaDoc;
22
23     Collection JavaDoc findByName(String JavaDoc name) throws FinderException JavaDoc;
24
25     Collection JavaDoc findByAddressline1(String JavaDoc addressline1) throws FinderException JavaDoc;
26
27     Collection JavaDoc findByAddressline2(String JavaDoc addressline2) throws FinderException JavaDoc;
28
29     Collection JavaDoc findByCity(String JavaDoc city) throws FinderException JavaDoc;
30
31     Collection JavaDoc findByState(String JavaDoc state) throws FinderException JavaDoc;
32
33     Collection JavaDoc findByPhone(String JavaDoc phone) throws FinderException JavaDoc;
34
35     Collection JavaDoc findByFax(String JavaDoc fax) throws FinderException JavaDoc;
36
37     Collection JavaDoc findByEmail(String JavaDoc email) throws FinderException JavaDoc;
38
39     Collection JavaDoc findByCreditLimit(Integer JavaDoc creditLimit) throws FinderException JavaDoc;
40     
41     
42 }
43
Popular Tags