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

All Superinterfaces:
javax.ejb.EJBLocalObject

public interface LocalAccount
extends javax.ejb.EJBLocalObject

The Local 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 apr)
          This remote method is used to set the APR for an Account entry.
 void setBalance(double amount)
          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.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

getAccountid

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

Returns:
The accountid attribute of the Account
Throws:
javax.ejb.EJBException

getBalance

double getBalance()
                  throws javax.ejb.EJBException
This remote method is used to retrieve the balance of an Account entry.

Returns:
The balance attribute of the Account
Throws:
javax.ejb.EJBException

setBalance

void setBalance(double amount)
                throws javax.ejb.EJBException
This remote method is used to set the balance for an Account entry.

Throws:
javax.ejb.EJBException

getApr

double getApr()
              throws javax.ejb.EJBException
This remote method is used to retrieve the APR of an Account entry.

Returns:
The apr attribute of the Account
Throws:
javax.ejb.EJBException

setApr

void setApr(double apr)
            throws javax.ejb.EJBException
This remote method is used to set the APR for an Account entry.

Parameters:
apr - The value of apr attribute of Account should be after this operation
Throws:
javax.ejb.EJBException

getType

int getType()
            throws javax.ejb.EJBException
This remote method is used to retrieve the type of an Account entry.

Returns:
The type attribute of the Account
Throws:
javax.ejb.EJBException

setType

void setType(int type)
             throws javax.ejb.EJBException
This remote method is used to set the type for an Account entry.

Parameters:
type - The value of type attribute of Account should be after this operation
Throws:
javax.ejb.EJBException

add

double add(double amount)
           throws javax.ejb.EJBException
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:
javax.ejb.EJBException

subtract

double subtract(double amount)
                throws javax.ejb.EJBException
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:
javax.ejb.EJBException