com.ibm.websphere.samples.appprofile.accountmanagementejb
Interface AccountManager

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

public interface AccountManager
extends javax.ejb.EJBObject

The Remote Interfe for Application Profile Account Management Sample

Since:
04/15/2002

Method Summary
 int createAccounts(int number)
          This remote method is used to create a number of Account entity beans.
 java.lang.String getAccount(java.lang.String accountid)
          This remote method is used to get an Account record in String format, given the primary key account id.
 int getAccountsNumber()
          This remote method is used to get the number of total accounts
 java.lang.String[] getLargeAccounts(double balance)
          This remote method is used to get a collection of Account records in String format that meet the minimum balance condition
 int increaseLargeAccountsAPR(double balance, double change)
          This remote method is used to increase the APR by the passed in apr parameter on all large accounts with balance greater than the passed in balance parameter.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

createAccounts

int createAccounts(int number)
                   throws java.rmi.RemoteException
This remote method is used to create a number of Account entity beans.

Parameters:
number - the number of Accounts needed to be created
Returns:
the actual number of Account been created
Throws:
java.rmi.RemoteException

getAccount

java.lang.String getAccount(java.lang.String accountid)
                            throws java.rmi.RemoteException
This remote method is used to get an Account record in String format, given the primary key account id.

Parameters:
accountid - String object represent the primary key of an Account
Returns:
account String format represent this Account
Throws:
java.rmi.RemoteException

getLargeAccounts

java.lang.String[] getLargeAccounts(double balance)
                                    throws java.rmi.RemoteException
This remote method is used to get a collection of Account records in String format that meet the minimum balance condition

Parameters:
balance - the required minimum balance condition
Returns:
accounts String[] object represent the collection of account records meet the requirement
Throws:
java.rmi.RemoteException

increaseLargeAccountsAPR

int increaseLargeAccountsAPR(double balance,
                             double change)
                             throws java.rmi.RemoteException
This remote method is used to increase the APR by the passed in apr parameter on all large accounts with balance greater than the passed in balance parameter.

Parameters:
balance - the required minimum balance condition
change - indicates how much the apr should increase
Returns:
the number of Accounts been affected.
Throws:
java.rmi.RemoteException

getAccountsNumber

int getAccountsNumber()
                      throws java.rmi.RemoteException
This remote method is used to get the number of total accounts

Returns:
number total accounts
Throws:
java.rmi.RemoteException