com.ibm.websphere.samples.i18nctx.currencyexchangeejb
Interface Exchange

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface Exchange
extends javax.ejb.EJBObject

This is an Enterprise Java Bean Remote Interface


Method Summary
 CustomerJBean deposit(java.lang.String account, double depositAmt)
          Perform a deposit of the supplied amount on the supplied account.
 CustomerJBean updateCustomer(java.lang.String account)
          Update the customer correlated with the supplied account to reflect the most recent transaction.
 CustomerJBean verifyPrincipal(java.lang.String account, java.lang.String password)
          Determine whether the supplied account and password are valid, returning the correlated customer on success.
 CustomerJBean withdraw(java.lang.String account, double withdrawAmt)
          Perform a withdrawl of the supplied amount on the supplied account.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

deposit

CustomerJBean deposit(java.lang.String account,
                      double depositAmt)
                      throws java.rmi.RemoteException
Perform a deposit of the supplied amount on the supplied account.

Parameters:
account - java.lang.String
depositAmt - A double value.
Returns:
com.ibm.websphere.samples.i18nctx.currencyexchangelibrary.CustomerJBean
Throws:
java.rmi.RemoteException

verifyPrincipal

CustomerJBean verifyPrincipal(java.lang.String account,
                              java.lang.String password)
                              throws java.rmi.RemoteException
Determine whether the supplied account and password are valid, returning the correlated customer on success.

Parameters:
account - java.lang.String
password - java.lang.String
Returns:
com.ibm.websphere.samples.i18nctx.currencyexchangelibrary.CustomerJBean
Throws:
java.rmi.RemoteException

withdraw

CustomerJBean withdraw(java.lang.String account,
                       double withdrawAmt)
                       throws java.rmi.RemoteException
Perform a withdrawl of the supplied amount on the supplied account.

Parameters:
account - java.lang.String
withdrawAmt - double
Returns:
com.ibm.websphere.samples.i18nctx.currencyexchangelibrary.CustomerJBean
Throws:
java.rmi.RemoteException

updateCustomer

CustomerJBean updateCustomer(java.lang.String account)
                             throws java.rmi.RemoteException
Update the customer correlated with the supplied account to reflect the most recent transaction.

Parameters:
account - java.lang.String
Returns:
com.ibm.websphere.samples.i18nctx.currencyexchangelibrary.CustomerJBean
Throws:
java.rmi.RemoteException