|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.websphere.samples.i18nctx.currencyexchangeejb.ExchangeBean
public class ExchangeBean
A remote Session Bean.
| Field Summary | |
|---|---|
static java.lang.String |
CUSTOMER_EJBHOME
|
protected LocalCustomerHome |
customerHome
|
| Constructor Summary | |
|---|---|
ExchangeBean()
|
|
| Method Summary | |
|---|---|
CustomerJBean |
deposit(java.lang.String account,
double depositAmt)
Add depositAmt to Customer balance when exchange other currencies to US dollars. |
void |
ejbActivate()
Session EJB lifecycle callback methods |
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
CustomerJBean |
updateCustomer(java.lang.String account)
update the customer information when the user want to do more exchange |
CustomerJBean |
verifyPrincipal(java.lang.String account,
java.lang.String password)
Verify Customer's principal |
CustomerJBean |
withdraw(java.lang.String account,
double withdrawAmt)
Withdraw withdrawAmt from Customer balance when exchange US dollars to other currencies |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LocalCustomerHome customerHome
public static final java.lang.String CUSTOMER_EJBHOME
| Constructor Detail |
|---|
public ExchangeBean()
| Method Detail |
|---|
public void ejbActivate()
ejbActivate in interface javax.ejb.SessionBeanpublic void ejbPassivate()
ejbPassivate in interface javax.ejb.SessionBean
public void ejbCreate()
throws javax.ejb.CreateException
javax.ejb.CreateExceptionpublic void ejbRemove()
ejbRemove in interface javax.ejb.SessionBeanpublic void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext in interface javax.ejb.SessionBean
public CustomerJBean verifyPrincipal(java.lang.String account,
java.lang.String password)
account - java.lang.Stringpassword - java.lang.String
public CustomerJBean deposit(java.lang.String account,
double depositAmt)
account - java.lang.StringdepositAmt - double
public CustomerJBean withdraw(java.lang.String account,
double withdrawAmt)
account - java.lang.StringwithdrawAmt - double
public CustomerJBean updateCustomer(java.lang.String account)
account - java.lang.String
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||