|
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 TellerBean. The signatures of the methods are identical to those of the EJBean, except that these methods throw a java.rmi.RemoteException. Note that the EJBean does not implement this interface. The corresponding code-generated EJBObject, TellerBeanE, implements this interface and delegates to the bean.
Method Summary | |
TellerResult |
balance(java.lang.String accountId)
Returns the balance of the account in a TellerResult object. |
boolean |
checkTransactionId(java.lang.String transactionId)
Returns true if the transaction with a given ID was completed (i.e., the transaction ID can be found in the transaction log table). |
TellerResult |
deposit(java.lang.String accountId,
double amount,
java.lang.String transactionId)
Deposits amount in specified account using a specific transaction ID. |
TellerResult |
transfer(java.lang.String accountFromId,
java.lang.String accountToId,
double amount,
java.lang.String transactionId)
Transfers amount from accountFrom to accountTo using a specific transaction ID. |
TellerResult |
withdraw(java.lang.String accountId,
double amount,
java.lang.String transactionId)
Withdraws amount from specified account using a specific transaction ID. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Method Detail |
public TellerResult balance(java.lang.String accountId) throws TellerException, java.rmi.RemoteException
accountId
- string account IDTellerException
- if there is an error while checking the balancejava.rmi.RemoteException
- if there is
a communications or systems failurepublic boolean checkTransactionId(java.lang.String transactionId) throws java.rmi.RemoteException
Note that the code in this method is specific for Oracle databases and will require adjustment for other databases.
transactionID
- string transaction IDjava.rmi.RemoteException
- if there is
a communications or systems failurepublic TellerResult deposit(java.lang.String accountId, double amount, java.lang.String transactionId) throws TellerException, java.rmi.RemoteException
accountId
- string account IDamount
- double amount to deposittransactionId
- string transaction IDTellerException
- if there is an error while making the depositjava.rmi.RemoteException
- if there is
a communications or systems failurepublic TellerResult transfer(java.lang.String accountFromId, java.lang.String accountToId, double amount, java.lang.String transactionId) throws TellerException, java.rmi.RemoteException
accountFrom
- string account ID of account taking amount fromaccountTo
- string account ID of account sending amount toamount
- double amount to transfertransactionId
- string transaction IDTellerException
- if there is an error while making the transferjava.rmi.RemoteException
- if there is
a communications or systems failurepublic TellerResult withdraw(java.lang.String accountId, double amount, java.lang.String transactionId) throws TellerException, java.rmi.RemoteException
accountId
- string account IDamount
- double amount to withdrawtransactionId
- string transaction IDTellerException
- if there is an error while making the withdrawaljava.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 |