WebLogic Server 6.1 Code Examples, BEA Systems, Inc.

examples.ejb20.cascadeDelete.one2many
Interface Customer

All Superinterfaces:
javax.ejb.EJBLocalObject

public interface Customer
extends javax.ejb.EJBLocalObject

Interface for a customer bean. Demonstrates one to many releationship with AccountBean.

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

Method Summary
 void addAccount(Account acct)
          Adds Account.
 java.util.Collection getAccounts()
          Return accounts.
 java.util.Collection getAllAccounts()
          Returns serializable Collection of Accounts.
 java.lang.String getName()
          Returns name of customer.
 void setAccounts(java.util.Collection accts)
           
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

addAccount

public void addAccount(Account acct)
Adds Account.

getAccounts

public java.util.Collection getAccounts()
Return accounts.
Returns:
Collection

getAllAccounts

public java.util.Collection getAllAccounts()
Returns serializable Collection of Accounts.
Returns:
Collection

getName

public java.lang.String getName()
Returns name of customer.
Returns:
java.lang.String

setAccounts

public void setAccounts(java.util.Collection accts)

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

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