1 2 package cmpdb; 3 4 import java.util.Collection ; 5 import javax.ejb.CreateException ; 6 import javax.ejb.EJBLocalHome ; 7 import javax.ejb.FinderException ; 8 9 10 13 public interface CustomerLocalHome extends EJBLocalHome { 14 15 CustomerLocal findByPrimaryKey(Integer key) throws FinderException ; 16 17 public CustomerLocal create(Integer customerId, String zip, String name, String addressline1, String addressline2, String city, String state, String phone, String fax, String email, Integer creditLimit, DiscountCodeLocal discountCode) throws CreateException ; 18 19 Collection findByCustomerId(Integer customerId) throws FinderException ; 20 21 Collection findByZip(String zip) throws FinderException ; 22 23 Collection findByName(String name) throws FinderException ; 24 25 Collection findByAddressline1(String addressline1) throws FinderException ; 26 27 Collection findByAddressline2(String addressline2) throws FinderException ; 28 29 Collection findByCity(String city) throws FinderException ; 30 31 Collection findByState(String state) throws FinderException ; 32 33 Collection findByPhone(String phone) throws FinderException ; 34 35 Collection findByFax(String fax) throws FinderException ; 36 37 Collection findByEmail(String email) throws FinderException ; 38 39 Collection findByCreditLimit(Integer creditLimit) throws FinderException ; 40 41 42 } 43 | Popular Tags |