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

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

public interface Account
extends javax.ejb.EJBObject

The Remote Interfe for Application Profile Account Management Sample

Since:
04/15/2002

Method Summary
 double add(double amount)
          This remote method is used to add a given amount of money to an Account entry.
 java.lang.String getAccountid()
          This remote method is used to retrieve the accountid of an Account entry.
 double getApr()
          This remote method is used to retrieve the APR of an Account entry.
 double getBalance()
          This remote method is used to retrieve the balance of an Account entry.
 int getType()
          This remote method is used to retrieve the type of an Account entry.
 void setApr(double value)
          This remote method is used to set the APR for an Account entry.
 void setBalance(double value)
          This remote method is used to set the balance for an Account entry.
 void setType(int type)
          This remote method is used to set the type for an Account entry.
 double subtract(double amount)
          This remote method is used to substract a given amount of money from an Account entry.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getAccountid

java.lang.String getAccountid()
                              throws java.rmi.RemoteException
This remote method is used to retrieve the accountid of an Account entry.

Returns:
The accountid attribute of the Account
Throws:
java.rmi.RemoteException

getBalance

double getBalance()
                  throws java.rmi.RemoteException
This remote method is used to retrieve the balance of an Account entry.

Returns:
The balance attribute of the Account
Throws:
java.rmi.RemoteException

setBalance

void setBalance(double value)
                throws java.rmi.RemoteException
This remote method is used to set the balance for an Account entry.

Parameters:
value - The value of balance attribute of Account should be after this operation
Throws:
java.rmi.RemoteException

getApr

double getApr()
              throws java.rmi.RemoteException
This remote method is used to retrieve the APR of an Account entry.

Returns:
apr The apr attribute of the Account
Throws:
java.rmi.RemoteException

setApr

void setApr(double value)
            throws java.rmi.RemoteException
This remote method is used to set the APR for an Account entry.

Parameters:
value - The value of apr attribute of Account should be after this operation
Throws:
java.rmi.RemoteException

getType

int getType()
            throws java.rmi.RemoteException
This remote method is used to retrieve the type of an Account entry.

Returns:
The type attribute of the Account
Throws:
java.rmi.RemoteException

setType

void setType(int type)
             throws java.rmi.RemoteException
This remote method is used to set the type for an Account entry.

Parameters:
type - set the type attribute of Account to this type parameter
Throws:
java.rmi.RemoteException

add

double add(double amount)
           throws java.rmi.RemoteException
This remote method is used to add a given amount of money to an Account entry.

Parameters:
amount - The amount should be added to balance attribute of the Account
Returns:
The balance attribute of the Account after this operation
Throws:
java.rmi.RemoteException

subtract

double subtract(double amount)
                throws java.rmi.RemoteException
This remote method is used to substract a given amount of money from an Account entry.

Parameters:
amount - The amount should be substracted from balance attribute of the Account
Returns:
The balance attribute of the Account after this operation
Throws:
java.rmi.RemoteException