1 27 28 29 package com.sun.ebank.ejb.customer; 30 31 import java.util.*; 32 import javax.ejb.*; 33 import com.sun.ebank.ejb.exception.*; 34 35 36 public interface CustomerHome extends EJBLocalHome { 37 public Customer create(String customerId, String lastName, 38 String firstName, String middleInitial, String street, String city, 39 String state, String zip, String phone, String email) 40 throws CreateException, MissingPrimaryKeyException; 41 42 public Customer findByPrimaryKey(String customerId) 43 throws FinderException; 44 45 public Collection findByAccountId(String accountId) 46 throws FinderException; 47 48 public Collection findByLastName(String lastName) throws FinderException; 49 } 50 | Popular Tags |