All Examples  All EJB Examples  This Package
  Interface examples.ejb.basic.containerManaged.Account
  -  public interface Account
  -  extends EJBObject
The methods in this interface are the public face of AccountBean.
 The signatures of the methods are identical to those of the bean, 
 except that these methods throw a java.rmi.RemoteException.
 Note that the EJBean does not implement this interface. 
 The corresponding code-generated EJBObject implements this interface
 and delegates to the EJBean.
  -  Author:
  
-  Copyright (c) 1998 by WebLogic, Inc. All Rights Reserved., 
  
 Copyright (c) 1998-1999 by BEA WebXpress. All Rights Reserved.
   
  -   balance() balance()
-   Balance in account.
  
-   deposit(double) deposit(double)
-   Deposits an amount.
  
-   type() type()
-   Type of account.
  
-   withdraw(double) withdraw(double)
-   Withdraws an amount.
   
 deposit
deposit
 public abstract double deposit(double amount) throws RemoteException
  -  Deposits an amount.
   
- 
    -  Parameters:
    
-  amount - double Amount to deposit
    
-  Returns:
    
-  double Account Balance
    
-  Throws: RemoteException
    
-  if there is
                          a communications or systems failure
  
 
 withdraw
withdraw
 public abstract double withdraw(double amount) throws ProcessingErrorException, RemoteException
  -  Withdraws an amount.
   
- 
    -  Parameters:
    
-  amount - double Amount to withdraw
    
-  Returns:
    
-  double Account Balance
    
-  Throws: ProcessingErrorException
    
-  if there is an error while depositing
    
-  Throws: RemoteException
    
-  if there is
                          a communications or systems failure
  
 
 balance
balance
 public abstract double balance() throws RemoteException
  -  Balance in account.
   
- 
    -  Returns:
    
-  double Account Balance
    
-  Throws: RemoteException
    
-  if there is
                          a communications or systems failure
  
 
 type
type
 public abstract String type() throws RemoteException
  -  Type of account.
   
- 
    -  Returns:
    
-  String Account type
    
-  Throws: RemoteException
    
-  if there is
                          a communications or systems failure
  
 
All Examples  All EJB Examples  This Package