1 27 28 29 package com.sun.ebank.ejb.account; 30 31 import java.util.ArrayList ; 32 import java.util.Date ; 33 import java.math.BigDecimal ; 34 import javax.ejb.EJBObject ; 35 import java.rmi.RemoteException ; 36 import com.sun.ebank.util.AccountDetails; 37 import com.sun.ebank.ejb.exception.*; 38 39 40 public interface AccountController extends EJBObject { 41 public String createAccount(String customerId, String type, 43 String description, BigDecimal balance, BigDecimal creditLine, 44 BigDecimal beginBalance, Date beginBalanceTimeStamp) 45 throws RemoteException , IllegalAccountTypeException, 46 CustomerNotFoundException, InvalidParameterException; 47 48 public void removeAccount(String accountId) 52 throws RemoteException , AccountNotFoundException, 53 InvalidParameterException; 54 55 public void addCustomerToAccount(String customerId, String accountId) 58 throws RemoteException , AccountNotFoundException, 59 CustomerNotFoundException, CustomerInAccountException, 60 InvalidParameterException; 61 62 public void removeCustomerFromAccount(String customerId, String accountId) 68 throws RemoteException , AccountNotFoundException, 69 CustomerRequiredException, CustomerNotInAccountException, 70 InvalidParameterException; 71 72 public ArrayList getAccountsOfCustomer(String customerId) 81 throws RemoteException , AccountNotFoundException, 82 InvalidParameterException; 83 84 public AccountDetails getDetails(String accountId) 88 throws RemoteException , AccountNotFoundException, 89 InvalidParameterException; 90 91 public void setType(String type, String accountId) 94 throws RemoteException , AccountNotFoundException, 95 IllegalAccountTypeException, InvalidParameterException; 96 97 public void setDescription(String description, String accountId) 98 throws RemoteException , AccountNotFoundException, 99 InvalidParameterException; 100 101 public void setBalance(BigDecimal balance, String accountId) 102 throws RemoteException , AccountNotFoundException, 103 InvalidParameterException; 104 105 public void setCreditLine(BigDecimal creditLine, String accountId) 106 throws RemoteException , AccountNotFoundException, 107 InvalidParameterException; 108 109 public void setBeginBalance(BigDecimal beginBalance, String accountId) 110 throws RemoteException , AccountNotFoundException, 111 InvalidParameterException; 112 113 public void setBeginBalanceTimeStamp(Date beginBalanceTimeStamp, 114 String accountId) 115 throws RemoteException , AccountNotFoundException, 116 InvalidParameterException; 117 } 118 | Popular Tags |