package ejava.transactions.demo;

import javax.ejb.EJBObject;
import java.rmi.RemoteException;

public interface AccountRemote extends EJBObject {
   String getId() throws RemoteException;

   void reset() throws RemoteException;

   /** returns the amount of money in the account */
   float getBalance() throws RemoteException;

   /** adds money to the account */
   void deposit(float amount) 
      throws RemoteException, AccountException;

   /** withdraws money from the account 

      @param rollack	true rollsback transaction on error
   */
   void withdraw(float amount) 
      throws RemoteException, AccountException;
}
