1 27 28 package dataregistry; 29 30 import java.util.Collection ; 31 import javax.ejb.CreateException ; 32 import javax.ejb.EJBLocalHome ; 33 import javax.ejb.FinderException ; 34 35 36 39 public interface VendorLocalHome extends EJBLocalHome { 40 41 VendorLocal findByPrimaryKey(VendorKey key) throws FinderException ; 42 43 public VendorLocal create(int vendorId, String name, String address, String contact, String phone) throws CreateException ; 44 45 Collection findByVendorId(Integer vendorId) throws FinderException ; 46 47 Collection findByName(String name) throws FinderException ; 48 49 Collection findByAddress(String address) throws FinderException ; 50 51 Collection findByContact(String contact) throws FinderException ; 52 53 Collection findByPhone(String phone) throws FinderException ; 54 55 Collection findByPartialName(String name) throws FinderException ; 56 57 Collection findByOrder(Integer orderId) throws FinderException ; 58 59 60 } 61 | Popular Tags |