|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Account
The Remote Interfe for Application Profile Account Management Sample
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 |
---|
java.lang.String getAccountid() throws java.rmi.RemoteException
java.rmi.RemoteException
double getBalance() throws java.rmi.RemoteException
java.rmi.RemoteException
void setBalance(double value) throws java.rmi.RemoteException
value
- The value of balance attribute of Account should be after this operation
java.rmi.RemoteException
double getApr() throws java.rmi.RemoteException
java.rmi.RemoteException
void setApr(double value) throws java.rmi.RemoteException
value
- The value of apr attribute of Account should be after this operation
java.rmi.RemoteException
int getType() throws java.rmi.RemoteException
java.rmi.RemoteException
void setType(int type) throws java.rmi.RemoteException
type
- set the type attribute of Account to this type parameter
java.rmi.RemoteException
double add(double amount) throws java.rmi.RemoteException
amount
- The amount should be added to balance attribute of the Account
java.rmi.RemoteException
double subtract(double amount) throws java.rmi.RemoteException
amount
- The amount should be substracted from balance attribute of the Account
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |