FileDocCategorySizeDatePackage
CustomerBean.javaAPI DocJBoss 4.2.13689Fri Jul 13 20:53:28 BST 2007org.jboss.ejb3.test.bank

CustomerBean

public class CustomerBean extends Object
see
author
$Author: dimitris@jboss.org $
version
$Revision: 57207 $

Fields Summary
public String
id
public String
name
public Collection
accounts
Constructors Summary
Methods Summary
public voidaddAccount(Account acct)

      accounts.add(acct);
   
public CustomerPKejbCreate(java.lang.String id, java.lang.String name)

      setId(id);
      setName(name);
      accounts = new ArrayList();

      CustomerPK pk = new CustomerPK();
      pk.id = id;
      pk.name = name;

      return pk;
   
public voidejbPostCreate(java.lang.String id, java.lang.String name)

   
public java.util.CollectiongetAccounts()

      return accounts;
   
public java.lang.StringgetId()

      return id;
   
public java.lang.StringgetName()

      return name;
   
public voidremoveAccount(Account acct)

      accounts.remove(acct);
   
public voidsetId(java.lang.String id)

      this.id = id;
   
public voidsetName(java.lang.String name)

      this.name = name;