|
WebLogic Server 6.0 Code Examples, BEA Systems, Inc. | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The methods in this interface are the public face of AccountBean. The signatures of the methods are identical to those of the bean, except that these methods throw a java.rmi.RemoteException. Note that the EJBean does not implement this interface. The corresponding code-generated EJBObject implements this interface and delegates to the EJBean.
Method Summary | |
java.lang.String |
accountType()
Type of account. |
void |
addCustomer(Customer cust)
Adds customer. |
double |
balance()
Balance in account. |
double |
deposit(double amount)
Deposits an amount. |
java.lang.String |
getAccountId()
Returns account ID. |
Customer |
getCustomer()
Returns a customer. |
void |
setCustomer(Customer c)
|
double |
withdraw(double amount)
Withdraws an amount. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Method Detail |
public java.lang.String accountType() throws java.rmi.RemoteException
java.rmi.RemoteException
- if there is
a communications or systems failurepublic void addCustomer(Customer cust) throws java.rmi.RemoteException
java.rmi.RemoteException
- if there is
a communications or systems failurepublic double balance() throws java.rmi.RemoteException
java.rmi.RemoteException
- if there is
a communications or systems failurepublic double deposit(double amount) throws java.rmi.RemoteException
amount
- double Amount to depositjava.rmi.RemoteException
- if there is
a communications or systems failurepublic java.lang.String getAccountId() throws java.rmi.RemoteException
java.rmi.RemoteException
- if there is
a communications or systems failurepublic Customer getCustomer() throws java.rmi.RemoteException
java.rmi.RemoteException
- if there is
a communications or systems failurepublic void setCustomer(Customer c) throws java.rmi.RemoteException
public double withdraw(double amount) throws java.rmi.RemoteException
amount
- double Amount to withdrawexamples.ejb.basic.cmp20_OneToOne.ProcessingErrorException
- if there is an error while depositingjava.rmi.RemoteException
- if there is
a communications or systems failure
|
Documentation is available at http://e-docs.bea.com/wls/docs60 |
|||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |