All Examples All EJB Examples This Package
Interface examples.ejb.extensions.finderEnumeration.Account
- public interface Account
- extends javax.ejb.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.
balance()
- Balance in account.
deposit(double)
- Deposits an amount.
withdraw(double)
- Withdraws an amount.
deposit
public double deposit(double amount) throws java.rmi.RemoteException
Deposits an amount.
- Parameters:
amount
- double Amount to deposit
- Returns:
- double Account Balance
- Throws:
- java.rmi.RemoteException - if there is a communications or systems failure
withdraw
public double withdraw(double amount) throws ProcessingErrorException, java.rmi.RemoteException
Withdraws an amount.
- Parameters:
amount
- double Amount to withdraw
- Returns:
- double Account Balance
- Throws:
- examples.ejb.basic.beanManaged.ProcessingErrorException - if there is an error while withdrawing
- java.rmi.RemoteException - if there is a communications or systems failure
balance
public double balance() throws java.rmi.RemoteException
Balance in account.
- Returns:
- double Account Balance
- Throws:
- java.rmi.RemoteException - if there is a communications or systems failure
All Examples All EJB Examples This Package