1 /*
2  * @(#) $Id: RemoteAccount.java,v 1.2 2003/07/08 08:13:52 pankaj Exp $
3  *
4  * Copyright (c) 2002-03 by Pankaj Kumar (http://www.pankaj-k.net). 
5  * All rights reserved.
6  *
7  * The license governing the use of this file can be found in the 
8  * root directory of the containing software.
9  */
10package common;
11
12import java.rmi.Remote;
13import java.rmi.RemoteException;
14import java.math.BigDecimal;
15import org.jstk.example.bank.Exceptions;
16
17public interface RemoteAccount extends Remote {
18    public void deposit(BigDecimal amt) throws Exceptions.AccountClosed, RemoteException;
19    public void withdraw(BigDecimal amt) throws Exceptions.AccountClosed,
20        Exceptions.InsufficientAmount, RemoteException;
21    public void close() throws Exceptions.AccountClosed, RemoteException;
22    public BigDecimal getBalance() throws Exceptions.AccountClosed, RemoteException;
23    public String getAcctNo() throws RemoteException;
24    public String getStatement() throws RemoteException;
25}
26