WebLogic Server 6.1 Code Examples, BEA Systems, Inc.

examples.ejb20.cascadeDelete.one2many
Interface Account

All Superinterfaces:
javax.ejb.EJBLocalObject

public interface Account
extends javax.ejb.EJBLocalObject

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.

Author:
Copyright (c) 1998-2000 by BEA Systems, Inc. All Rights Reserved.

Method Summary
 java.lang.String accountType()
          Type of account.
 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.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

accountType

public java.lang.String accountType()
Type of account.
Returns:
String account Type

balance

public double balance()
Balance in account.
Returns:
double Account Balance

deposit

public double deposit(double amount)
Deposits an amount.
Parameters:
amount - double Amount to deposit
Returns:
double Account Balance

getAccountId

public java.lang.String getAccountId()
Returns account ID.
Returns:
String account ID

getCustomer

public Customer getCustomer()
Returns a customer.
Returns:
Customer name

setCustomer

public void setCustomer(Customer c)

withdraw

public double withdraw(double amount)
Withdraws an amount.
Parameters:
amount - double Amount to withdraw
Returns:
double Account Balance
Throws:
examples.ejb.basic.cmp20_OneToOne.ProcessingErrorException - if there is an error while depositing

Documentation is available at
http://e-docs.bea.com/wls/docs61

Copyright © 2001 BEA Systems, Inc. All Rights Reserved.