1 27 28 29 package com.sun.ebank.ejb.customer; 30 31 import java.util.ArrayList ; 32 import java.util.Date ; 33 import javax.ejb.EJBObject ; 34 import java.rmi.RemoteException ; 35 import com.sun.ebank.util.CustomerDetails; 36 import com.sun.ebank.ejb.exception.*; 37 38 39 public interface CustomerController extends EJBObject { 40 public String createCustomer(String lastName, String firstName, 42 String middleInitial, String street, String city, String state, 43 String zip, String phone, String email) 44 throws InvalidParameterException, RemoteException ; 45 46 public void removeCustomer(String customerId) 49 throws RemoteException , CustomerNotFoundException, 50 InvalidParameterException; 51 52 public ArrayList getCustomersOfAccount(String accountId) 55 throws RemoteException , CustomerNotFoundException, 56 InvalidParameterException; 57 58 public CustomerDetails getDetails(String customerId) 62 throws RemoteException , CustomerNotFoundException, 63 InvalidParameterException; 64 65 public ArrayList getCustomersOfLastName(String lastName) 67 throws InvalidParameterException, RemoteException ; 68 69 public void setName(String lastName, String firstName, 75 String middleInitial, String customerId) 76 throws RemoteException , CustomerNotFoundException, 77 InvalidParameterException; 78 79 public void setAddress(String street, String city, String state, 80 String zip, String phone, String email, String customerId) 81 throws RemoteException , CustomerNotFoundException, 82 InvalidParameterException; 83 } 84 | Popular Tags |