1 27 28 29 package com.sun.ebank.ejb.tx; 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.TxDetails; 37 import com.sun.ebank.ejb.exception.*; 38 39 40 public interface TxController extends EJBObject { 41 public ArrayList getTxsOfAccount(Date startDate, Date endDate, 43 String accountId) throws RemoteException , InvalidParameterException; 44 45 public TxDetails getDetails(String txId) 49 throws RemoteException , TxNotFoundException, InvalidParameterException; 50 51 public void withdraw(BigDecimal amount, String description, String accountId) 54 throws RemoteException , InvalidParameterException, 55 AccountNotFoundException, IllegalAccountTypeException, 56 InsufficientFundsException; 57 58 public void deposit(BigDecimal amount, String description, String accountId) 60 throws RemoteException , InvalidParameterException, 61 AccountNotFoundException, IllegalAccountTypeException; 62 63 public void transferFunds(BigDecimal amount, String description, 65 String fromAccountId, String toAccountId) 66 throws RemoteException , InvalidParameterException, 67 AccountNotFoundException, InsufficientFundsException, 68 InsufficientCreditException; 69 70 public void makeCharge(BigDecimal amount, String description, 72 String accountId) 73 throws InvalidParameterException, AccountNotFoundException, 74 IllegalAccountTypeException, InsufficientCreditException, 75 RemoteException ; 76 77 public void makePayment(BigDecimal amount, String description, 79 String accountId) 80 throws InvalidParameterException, AccountNotFoundException, 81 IllegalAccountTypeException, RemoteException ; 82 83 } 85 | Popular Tags |